Skip to content

Commit cfad65c

Browse files
weiyjdavem330
authored andcommitted
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>
1 parent b22ae0b commit cfad65c

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎drivers/net/dsa/b53/b53_spi.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,6 @@ static int b53_spi_remove(struct spi_device *spi)
317317
static struct spi_driver b53_spi_driver = {
318318
.driver = {
319319
.name = "b53-switch",
320-
.bus = &spi_bus_type,
321-
.owner = THIS_MODULE,
322320
},
323321
.probe = b53_spi_probe,
324322
.remove = b53_spi_remove,

0 commit comments

Comments
 (0)