Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

authored by

Michal Simek and committed by
Wim Van Sebroeck
fca8c048 f114040e

-1
-1
drivers/watchdog/of_xilinx_wdt.c
··· 236 236 .probe = xwdt_probe, 237 237 .remove = xwdt_remove, 238 238 .driver = { 239 - .owner = THIS_MODULE, 240 239 .name = WATCHDOG_NAME, 241 240 .of_match_table = xwdt_of_match, 242 241 },