diff options
author | Michal Simek <michal.simek@xilinx.com> | 2013-11-26 11:38:18 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-12-29 13:32:33 +0100 |
commit | 90a8471232797b96ed9af3a31fbb21b2df245ed1 (patch) | |
tree | e22daf77fda87fd45b1fc9766f48e05b3018fefa /drivers/input | |
parent | ARM: 7890/1: v7-M: drop using mach/entry-macro.S (diff) | |
download | linux-90a8471232797b96ed9af3a31fbb21b2df245ed1.tar.xz linux-90a8471232797b96ed9af3a31fbb21b2df245ed1.zip |
ARM: 7904/1: input: ambakmi: Remove unnecessary amba_set_drvdata()
Driver core clears the driver data to NULL after device_release
or on probe failure, so just remove it from here.
Driver core change:
"device-core: Ensure drvdata = NULL when no driver is bound"
(sha1: 0998d0631001288a5974afc0b2a5f568bcdecb4d)
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/serio/ambakmi.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/input/serio/ambakmi.c b/drivers/input/serio/ambakmi.c index 4e2fd44865e1..b7c206db0df8 100644 --- a/drivers/input/serio/ambakmi.c +++ b/drivers/input/serio/ambakmi.c @@ -167,8 +167,6 @@ static int amba_kmi_remove(struct amba_device *dev) { struct amba_kmi_port *kmi = amba_get_drvdata(dev); - amba_set_drvdata(dev, NULL); - serio_unregister_port(kmi->io); clk_put(kmi->clk); iounmap(kmi->base); |