[media] s5c73m3: Remove redundant spi driver bus initialization
authorAntonio Borneo <borneo.antonio@gmail.com>
Tue, 23 Jun 2015 14:53:19 +0000 (11:53 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 11 Aug 2015 14:10:24 +0000 (11:10 -0300)
In ancient times it was necessary to manually initialize the bus
field of an spi_driver to spi_bus_type. These days this is done in
spi_register_driver(), so we can drop the manual assignment.

Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/s5c73m3/s5c73m3-spi.c

index 63eb19093381d2abad3a39871167c7c237051be5..fa4a5ebda6b2e2045b5e2b0ab226c199d21b59bf 100644 (file)
@@ -149,7 +149,6 @@ int s5c73m3_register_spi_driver(struct s5c73m3 *state)
        spidrv->remove = s5c73m3_spi_remove;
        spidrv->probe = s5c73m3_spi_probe;
        spidrv->driver.name = S5C73M3_SPI_DRV_NAME;
-       spidrv->driver.bus = &spi_bus_type;
        spidrv->driver.owner = THIS_MODULE;
        spidrv->driver.of_match_table = s5c73m3_spi_ids;