Input: wm97xx-core - simplify error path in wm97xx_probe()
authorAxel Lin <axel.lin@gmail.com>
Fri, 3 Sep 2010 17:31:04 +0000 (10:31 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 5 Sep 2010 19:12:57 +0000 (12:12 -0700)
commitd3622e6f05b2134deb5ba8ca2f6bcce5391e7e6d
tree2155e3ed454c2d8baa7d128eb3da72345dcb17b2
parentcdd194779b72fe6d5e1b5b67ef57a0fddbd60eac
Input: wm97xx-core - simplify error path in wm97xx_probe()

Use platform_device_del() instead of platform_device_unregister() in error
handling path.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Acked-by: Mark Brown <broonie@opensoruce.wolfsonmicro.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/wm97xx-core.c