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

tty: serial: xuartps: 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Michal Simek and committed by
Greg Kroah-Hartman
4ebe7865 c10b7390

-1
-1
drivers/tty/serial/xilinx_uartps.c
··· 1428 1428 .probe = cdns_uart_probe, 1429 1429 .remove = cdns_uart_remove, 1430 1430 .driver = { 1431 - .owner = THIS_MODULE, 1432 1431 .name = CDNS_UART_NAME, 1433 1432 .of_match_table = cdns_uart_of_match, 1434 1433 .pm = &cdns_uart_dev_pm_ops,