Stephen Boyd e578438820 mfd: ssbi: Use devm_* and simplify code
Use devm_ioremap_resource and devm_kzalloc to simplify error
paths and reduce lines of code. Also use dev_err() to keep
consistency and drop the .remove function because the devm
functions take care of what it's doing besides the now obsolete
platform_set_drvdata() which we can just drop. Finally, use
module_platform_driver() to save some more lines.

Cc: David Brown <davidb@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2013-06-18 09:41:15 +02:00
..
2013-04-05 11:20:14 +02:00
2013-04-05 11:20:13 +02:00
2012-11-28 12:22:27 -08:00
2013-04-08 17:25:28 +02:00
2012-11-28 12:22:27 -08:00
2012-09-23 20:51:34 +02:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2013-04-19 00:45:20 +02:00
2013-06-11 19:27:51 +02:00
2013-02-14 00:22:59 +01:00
2013-04-19 18:29:18 +02:00
2013-06-11 19:27:51 +02:00
2013-06-11 19:27:51 +02:00
2013-04-19 18:40:05 +02:00
2012-11-28 12:22:27 -08:00
2013-06-18 09:41:15 +02:00
2013-04-08 17:28:29 +02:00
2013-04-09 12:18:16 +02:00
2013-04-08 17:25:29 +02:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2013-02-14 00:22:54 +01:00
2013-04-08 17:25:27 +02:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:20:19 -08:00