Commit fca8c048 authored by Michal Simek's avatar Michal Simek Committed by Wim Van Sebroeck

watchdog: xilinx: Remove .owner field for driver

There is no need to init .owner field.

Based on the patch from Peter Griffin <peter.griffin@linaro.org>
"mmc: remove .owner field for drivers using module_platform_driver"

This patch removes the superflous .owner field for drivers which
use the module_platform_driver API, as this is overriden in
platform_driver_register anyway."
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent f114040e
...@@ -236,7 +236,6 @@ static struct platform_driver xwdt_driver = { ...@@ -236,7 +236,6 @@ static struct platform_driver xwdt_driver = {
.probe = xwdt_probe, .probe = xwdt_probe,
.remove = xwdt_remove, .remove = xwdt_remove,
.driver = { .driver = {
.owner = THIS_MODULE,
.name = WATCHDOG_NAME, .name = WATCHDOG_NAME,
.of_match_table = xwdt_of_match, .of_match_table = xwdt_of_match,
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment