@@ -196,19 +196,7 @@ void octeon_mdiobus_force_mod_depencency(void)/* Let ethernet drivers force us to be loaded. */}EXPORT_SYMBOL(octeon_mdiobus_force_mod_depencency);--staticint__initocteon_mdiobus_mod_init(void)-{-returnplatform_driver_register(&octeon_mdiobus_driver);-}--staticvoid__exitocteon_mdiobus_mod_exit(void)-{-platform_driver_unregister(&octeon_mdiobus_driver);-}--module_init(octeon_mdiobus_mod_init);-module_exit(octeon_mdiobus_mod_exit);+module_platform_driver(octeon_mdiobus_driver);MODULE_DESCRIPTION(DRV_DESCRIPTION);MODULE_VERSION(DRV_VERSION);
From: David Daney <hidden> Date: 2012-10-10 18:46:16
On 10/10/2012 11:29 AM, Srinivas KANDAGATLA wrote:
From: Srinivas Kandagatla <redacted>
This patch removes some code duplication by using
module_platform_driver.
Signed-off-by: Srinivas Kandagatla <redacted>
Acked-by: David Daney <redacted>
I have the same thing locally, but you beat me to sending it in.
@@ -196,19 +196,7 @@ void octeon_mdiobus_force_mod_depencency(void)/* Let ethernet drivers force us to be loaded. */}EXPORT_SYMBOL(octeon_mdiobus_force_mod_depencency);--staticint__initocteon_mdiobus_mod_init(void)-{-returnplatform_driver_register(&octeon_mdiobus_driver);-}--staticvoid__exitocteon_mdiobus_mod_exit(void)-{-platform_driver_unregister(&octeon_mdiobus_driver);-}--module_init(octeon_mdiobus_mod_init);-module_exit(octeon_mdiobus_mod_exit);+module_platform_driver(octeon_mdiobus_driver);MODULE_DESCRIPTION(DRV_DESCRIPTION);MODULE_VERSION(DRV_VERSION);