Message ID | 20210128035330.17676-1-dingsenjie@163.com (mailing list archive) |
---|---|
State | Accepted |
Commit | afa4f675aa62467f706f06b67d4c7955b362f949 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net/ethernet: convert to use module_platform_driver in octeon_mgmt.c | expand |
Context | Check | Description |
---|---|---|
netdev/cover_letter | success | Link |
netdev/fixes_present | success | Link |
netdev/patch_count | success | Link |
netdev/tree_selection | success | Guessed tree name to be net-next |
netdev/subject_prefix | warning | Target tree name not specified in the subject |
netdev/cc_maintainers | warning | 5 maintainers not CCed: f.fainelli@gmail.com gregkh@linuxfoundation.org alexander.sverdlin@nokia.com apais@linux.microsoft.com ivan.khoronzhuk@gmail.com |
netdev/source_inline | success | Was 0 now: 0 |
netdev/verify_signedoff | success | Link |
netdev/module_param | success | Was 0 now: 0 |
netdev/build_32bit | success | Errors and warnings before: 0 this patch: 0 |
netdev/kdoc | success | Errors and warnings before: 0 this patch: 0 |
netdev/verify_fixes | success | Link |
netdev/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 19 lines checked |
netdev/build_allmodconfig_warn | success | Errors and warnings before: 0 this patch: 0 |
netdev/header_inline | success | Link |
netdev/stable | success | Stable not CCed |
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Thu, 28 Jan 2021 11:53:30 +0800 you wrote: > From: dingsenjie <dingsenjie@yulong.com> > > Simplify the code by using module_platform_driver macro > for octeon_mgmt. > > Signed-off-by: dingsenjie <dingsenjie@yulong.com> > > [...] Here is the summary with links: - net/ethernet: convert to use module_platform_driver in octeon_mgmt.c https://git.kernel.org/netdev/net-next/c/afa4f675aa62 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
diff --git a/drivers/net/ethernet/cavium/octeon/octeon_mgmt.c b/drivers/net/ethernet/cavium/octeon/octeon_mgmt.c index 5e50bb1..ecffebd 100644 --- a/drivers/net/ethernet/cavium/octeon/octeon_mgmt.c +++ b/drivers/net/ethernet/cavium/octeon/octeon_mgmt.c @@ -1556,18 +1556,7 @@ static int octeon_mgmt_remove(struct platform_device *pdev) .remove = octeon_mgmt_remove, }; -static int __init octeon_mgmt_mod_init(void) -{ - return platform_driver_register(&octeon_mgmt_driver); -} - -static void __exit octeon_mgmt_mod_exit(void) -{ - platform_driver_unregister(&octeon_mgmt_driver); -} - -module_init(octeon_mgmt_mod_init); -module_exit(octeon_mgmt_mod_exit); +module_platform_driver(octeon_mgmt_driver); MODULE_SOFTDEP("pre: mdio-cavium"); MODULE_DESCRIPTION(DRV_DESCRIPTION);