mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
spi: Drop owner assignment from spi_drivers
An spi_driver does not need to set an owner, it will be populated by the driver core. Signed-off-by: Andrew F. Davis <[email protected]> Acked-by: Jonathan Cameron <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
ca5d248542
commit
3821a065f5
203 changed files with 1 additions and 205 deletions
|
|
@ -772,7 +772,6 @@ static int ds1305_remove(struct spi_device *spi)
|
|||
|
||||
static struct spi_driver ds1305_driver = {
|
||||
.driver.name = "rtc-ds1305",
|
||||
.driver.owner = THIS_MODULE,
|
||||
.probe = ds1305_probe,
|
||||
.remove = ds1305_remove,
|
||||
/* REVISIT add suspend/resume */
|
||||
|
|
|
|||
|
|
@ -731,7 +731,6 @@ static SIMPLE_DEV_PM_OPS(ds1343_pm, ds1343_suspend, ds1343_resume);
|
|||
static struct spi_driver ds1343_driver = {
|
||||
.driver = {
|
||||
.name = "ds1343",
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &ds1343_pm,
|
||||
},
|
||||
.probe = ds1343_probe,
|
||||
|
|
|
|||
|
|
@ -154,7 +154,6 @@ static int ds1347_probe(struct spi_device *spi)
|
|||
static struct spi_driver ds1347_driver = {
|
||||
.driver = {
|
||||
.name = "ds1347",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = ds1347_probe,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -156,7 +156,6 @@ static int ds1390_probe(struct spi_device *spi)
|
|||
static struct spi_driver ds1390_driver = {
|
||||
.driver = {
|
||||
.name = "rtc-ds1390",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = ds1390_probe,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -159,7 +159,6 @@ static int ds3234_probe(struct spi_device *spi)
|
|||
static struct spi_driver ds3234_driver = {
|
||||
.driver = {
|
||||
.name = "ds3234",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = ds3234_probe,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -197,7 +197,6 @@ static int m41t93_probe(struct spi_device *spi)
|
|||
static struct spi_driver m41t93_driver = {
|
||||
.driver = {
|
||||
.name = "rtc-m41t93",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = m41t93_probe,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -137,7 +137,6 @@ static int m41t94_probe(struct spi_device *spi)
|
|||
static struct spi_driver m41t94_driver = {
|
||||
.driver = {
|
||||
.name = "rtc-m41t94",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = m41t94_probe,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -146,7 +146,6 @@ static int max6902_probe(struct spi_device *spi)
|
|||
static struct spi_driver max6902_driver = {
|
||||
.driver = {
|
||||
.name = "rtc-max6902",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = max6902_probe,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -186,7 +186,6 @@ static int mcp795_probe(struct spi_device *spi)
|
|||
static struct spi_driver mcp795_driver = {
|
||||
.driver = {
|
||||
.name = "rtc-mcp795",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = mcp795_probe,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -346,7 +346,6 @@ MODULE_DEVICE_TABLE(of, pcf2123_dt_ids);
|
|||
static struct spi_driver pcf2123_driver = {
|
||||
.driver = {
|
||||
.name = "rtc-pcf2123",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = of_match_ptr(pcf2123_dt_ids),
|
||||
},
|
||||
.probe = pcf2123_probe,
|
||||
|
|
|
|||
|
|
@ -172,7 +172,6 @@ static int r9701_remove(struct spi_device *spi)
|
|||
static struct spi_driver r9701_driver = {
|
||||
.driver = {
|
||||
.name = "rtc-r9701",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = r9701_probe,
|
||||
.remove = r9701_remove,
|
||||
|
|
|
|||
|
|
@ -221,7 +221,6 @@ static int rs5c348_probe(struct spi_device *spi)
|
|||
static struct spi_driver rs5c348_driver = {
|
||||
.driver = {
|
||||
.name = "rtc-rs5c348",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = rs5c348_probe,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -291,7 +291,6 @@ MODULE_DEVICE_TABLE(spi, rx4581_id);
|
|||
static struct spi_driver rx4581_driver = {
|
||||
.driver = {
|
||||
.name = "rtc-rx4581",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = rx4581_probe,
|
||||
.id_table = rx4581_id,
|
||||
|
|
|
|||
Loading…
Reference in a new issue