These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / media / i2c / s5c73m3 / s5c73m3-spi.c
index 63eb190..72ef9f9 100644 (file)
@@ -31,6 +31,7 @@ static const struct of_device_id s5c73m3_spi_ids[] = {
        { .compatible = "samsung,s5c73m3" },
        { }
 };
+MODULE_DEVICE_TABLE(of, s5c73m3_spi_ids);
 
 enum spi_direction {
        SPI_DIR_RX,
@@ -149,8 +150,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;
 
        return spi_register_driver(spidrv);