mfd: ssbi: Use devm_* and simplify code
commit1aa3d1a3c7d235c47e30c7c8c6b5ef02fb1536b3
authorStephen Boyd <sboyd@codeaurora.org>
Mon, 3 Jun 2013 19:39:44 +0000 (3 12:39 -0700)
committerDavid Brown <davidb@codeaurora.org>
Wed, 12 Jun 2013 21:50:12 +0000 (12 14:50 -0700)
tree1f1cf15f61d59cfd17cf7063d9db523353524b6d
parent43f68444bce70e360ff6ce3653a54e511625f651
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>
Signed-off-by: David Brown <davidb@codeaurora.org>
drivers/ssbi/ssbi.c