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

net: dsa: b53: remove .owner and .bus fields for driver

Remove .owner and .bus fields since module_spi_driver() is used
which set them automatically.

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Wei Yongjun and committed by
David S. Miller
cfad65c7 b22ae0b4

-2
-2
drivers/net/dsa/b53/b53_spi.c
··· 317 317 static struct spi_driver b53_spi_driver = { 318 318 .driver = { 319 319 .name = "b53-switch", 320 - .bus = &spi_bus_type, 321 - .owner = THIS_MODULE, 322 320 }, 323 321 .probe = b53_spi_probe, 324 322 .remove = b53_spi_remove,