Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c3fb557 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Linus Torvalds
Browse files

drivers/rtc/: remove redundant spi driver bus initialization



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_driver_register(), so we can drop the manual assignment.

The patch was generated using the following coccinelle semantic patch:
// <smpl>
@@
identifier _driver;
@@
struct spi_driver _driver = {
	.driver = {
-		.bus = &spi_bus_type,
	},
};
// </smpl>

Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 681d0378
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -200,7 +200,6 @@ static int __devexit m41t93_remove(struct spi_device *spi)
static struct spi_driver m41t93_driver = {
static struct spi_driver m41t93_driver = {
	.driver = {
	.driver = {
		.name	= "rtc-m41t93",
		.name	= "rtc-m41t93",
		.bus	= &spi_bus_type,
		.owner	= THIS_MODULE,
		.owner	= THIS_MODULE,
	},
	},
	.probe	= m41t93_probe,
	.probe	= m41t93_probe,
+0 −1
Original line number Original line Diff line number Diff line
@@ -147,7 +147,6 @@ static int __devexit m41t94_remove(struct spi_device *spi)
static struct spi_driver m41t94_driver = {
static struct spi_driver m41t94_driver = {
	.driver = {
	.driver = {
		.name	= "rtc-m41t94",
		.name	= "rtc-m41t94",
		.bus	= &spi_bus_type,
		.owner	= THIS_MODULE,
		.owner	= THIS_MODULE,
	},
	},
	.probe	= m41t94_probe,
	.probe	= m41t94_probe,
+0 −1
Original line number Original line Diff line number Diff line
@@ -154,7 +154,6 @@ static int __devexit max6902_remove(struct spi_device *spi)
static struct spi_driver max6902_driver = {
static struct spi_driver max6902_driver = {
	.driver = {
	.driver = {
		.name	= "rtc-max6902",
		.name	= "rtc-max6902",
		.bus	= &spi_bus_type,
		.owner	= THIS_MODULE,
		.owner	= THIS_MODULE,
	},
	},
	.probe	= max6902_probe,
	.probe	= max6902_probe,
+0 −1
Original line number Original line Diff line number Diff line
@@ -340,7 +340,6 @@ static int __devexit pcf2123_remove(struct spi_device *spi)
static struct spi_driver pcf2123_driver = {
static struct spi_driver pcf2123_driver = {
	.driver	= {
	.driver	= {
			.name	= "rtc-pcf2123",
			.name	= "rtc-pcf2123",
			.bus	= &spi_bus_type,
			.owner	= THIS_MODULE,
			.owner	= THIS_MODULE,
	},
	},
	.probe	= pcf2123_probe,
	.probe	= pcf2123_probe,
+0 −1
Original line number Original line Diff line number Diff line
@@ -229,7 +229,6 @@ static int __devexit rs5c348_remove(struct spi_device *spi)
static struct spi_driver rs5c348_driver = {
static struct spi_driver rs5c348_driver = {
	.driver = {
	.driver = {
		.name	= "rtc-rs5c348",
		.name	= "rtc-rs5c348",
		.bus	= &spi_bus_type,
		.owner	= THIS_MODULE,
		.owner	= THIS_MODULE,
	},
	},
	.probe	= rs5c348_probe,
	.probe	= rs5c348_probe,