media: sunxi-cir: Clean up dead register writes
The register writes during driver removal occur after the device is already put back in reset, so they never had any effect. Acked-by: Maxime Ripard <mripard@kernel.org> Signed-off-by: Samuel Holland <samuel@sholland.org> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
803abec64e
commit
586bb700b3
@ -342,22 +342,12 @@ exit_reset_assert:
|
||||
|
||||
static int sunxi_ir_remove(struct platform_device *pdev)
|
||||
{
|
||||
unsigned long flags;
|
||||
struct sunxi_ir *ir = platform_get_drvdata(pdev);
|
||||
|
||||
clk_disable_unprepare(ir->clk);
|
||||
clk_disable_unprepare(ir->apb_clk);
|
||||
reset_control_assert(ir->rst);
|
||||
|
||||
spin_lock_irqsave(&ir->ir_lock, flags);
|
||||
/* disable IR IRQ */
|
||||
writel(0, ir->base + SUNXI_IR_RXINT_REG);
|
||||
/* clear All Rx Interrupt Status */
|
||||
writel(REG_RXSTA_CLEARALL, ir->base + SUNXI_IR_RXSTA_REG);
|
||||
/* disable IR */
|
||||
writel(0, ir->base + SUNXI_IR_CTL_REG);
|
||||
spin_unlock_irqrestore(&ir->ir_lock, flags);
|
||||
|
||||
rc_unregister_device(ir->rc);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user