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

tty: serial: uartlite: 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>
Acked-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

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

-1
-1
drivers/tty/serial/uartlite.c
··· 665 665 .probe = ulite_probe, 666 666 .remove = ulite_remove, 667 667 .driver = { 668 - .owner = THIS_MODULE, 669 668 .name = "uartlite", 670 669 .of_match_table = of_match_ptr(ulite_of_match), 671 670 },