From: Stephen Boyd Date: Mon, 3 Jun 2013 19:39:44 +0000 (-0700) Subject: mfd: ssbi: Use devm_* and simplify code X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~72^2~12^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1aa3d1a3c7d235c47e30c7c8c6b5ef02fb1536b3;p=pandora-kernel.git 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 Signed-off-by: Stephen Boyd Signed-off-by: David Brown --- Reading git-diff-tree failed