From: Wei Yongjun Date: Fri, 12 Aug 2016 15:46:57 +0000 (+0000) Subject: net: dsa: b53: remove .owner and .bus fields for driver X-Git-Tag: v4.9-rc1~14^2~102 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cfad65c7fa9e77c27025eb5c2098cfbd4d445eab;p=platform%2Fkernel%2Flinux-amlogic.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/dsa/b53/b53_spi.c b/drivers/net/dsa/b53/b53_spi.c index 1c847a1..f89f530 100644 --- a/drivers/net/dsa/b53/b53_spi.c +++ b/drivers/net/dsa/b53/b53_spi.c @@ -317,8 +317,6 @@ static int b53_spi_remove(struct spi_device *spi) static struct spi_driver b53_spi_driver = { .driver = { .name = "b53-switch", - .bus = &spi_bus_type, - .owner = THIS_MODULE, }, .probe = b53_spi_probe, .remove = b53_spi_remove,