mfd: omap-usb-tll: Fix error message
authorRoger Quadros <rogerq@ti.com>
Mon, 26 Nov 2012 13:26:28 +0000 (15:26 +0200)
committerRoger Quadros <rogerq@ti.com>
Wed, 13 Feb 2013 11:22:42 +0000 (13:22 +0200)
commit7ed8619141198191d09f63fa6f172af361ad280d
treeaf3378eaa148463c955133ad54503223c61c8547
parent8bdbd1549479840293e46bf0f84d7174e77b7b5e
mfd: omap-usb-tll: Fix error message

omap_enable/disable_tll() can fail if TLL device is not
initialized. It could be due to multiple reasons and not only
due to missing platform data.

Also make local variables static and use 'struct device *'
instead of 'struct platform_device *' for global reference.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
drivers/mfd/omap-usb-tll.c