EDAC, mpc85xx: Use platform_register/unregister_drivers()
authorThierry Reding <treding@nvidia.com>
Thu, 3 Dec 2015 09:57:12 +0000 (10:57 +0100)
committerBorislav Petkov <bp@suse.de>
Thu, 3 Dec 2015 11:03:36 +0000 (12:03 +0100)
commitd54051f1cc2af6d12c2478911921d32476319621
tree09b7523c5ba52e5078dcd0be1a8c396aacdd91bb
parent255379ae9af8c04788c171fa050949ab2ac3f356
EDAC, mpc85xx: Use platform_register/unregister_drivers()

These new helpers simplify implementing multi-driver modules and
properly handle failure to register one driver by unregistering all
previously registered drivers.

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/1449136632-11680-1-git-send-email-thierry.reding@gmail.com
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/mpc85xx_edac.c