public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/11] RTC: Remove redundant spi driver bus initialization
@ 2011-11-24 15:29 Lars-Peter Clausen
  2011-11-24 15:29 ` [PATCH 02/11] TTY: " Lars-Peter Clausen
                   ` (9 more replies)
  0 siblings, 10 replies; 23+ messages in thread
From: Lars-Peter Clausen @ 2011-11-24 15:29 UTC (permalink / raw)
  To: linux-kernel; +Cc: Lars-Peter Clausen, John Stultz, Alessandro Zummo, rtc-linux

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: Lars-Peter Clausen <lars@metafoo.de>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: rtc-linux@googlegroups.com
---
 drivers/rtc/rtc-m41t93.c  |    1 -
 drivers/rtc/rtc-m41t94.c  |    1 -
 drivers/rtc/rtc-max6902.c |    1 -
 drivers/rtc/rtc-pcf2123.c |    1 -
 drivers/rtc/rtc-rs5c348.c |    1 -
 5 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/drivers/rtc/rtc-m41t93.c b/drivers/rtc/rtc-m41t93.c
index 7317d3b..ef71132 100644
--- a/drivers/rtc/rtc-m41t93.c
+++ b/drivers/rtc/rtc-m41t93.c
@@ -200,7 +200,6 @@ static int __devexit m41t93_remove(struct spi_device *spi)
 static struct spi_driver m41t93_driver = {
 	.driver = {
 		.name	= "rtc-m41t93",
-		.bus	= &spi_bus_type,
 		.owner	= THIS_MODULE,
 	},
 	.probe	= m41t93_probe,
diff --git a/drivers/rtc/rtc-m41t94.c b/drivers/rtc/rtc-m41t94.c
index e259ed7..2a4721f 100644
--- a/drivers/rtc/rtc-m41t94.c
+++ b/drivers/rtc/rtc-m41t94.c
@@ -147,7 +147,6 @@ static int __devexit m41t94_remove(struct spi_device *spi)
 static struct spi_driver m41t94_driver = {
 	.driver = {
 		.name	= "rtc-m41t94",
-		.bus	= &spi_bus_type,
 		.owner	= THIS_MODULE,
 	},
 	.probe	= m41t94_probe,
diff --git a/drivers/rtc/rtc-max6902.c b/drivers/rtc/rtc-max6902.c
index 0ec3f58..1f6b3cc 100644
--- a/drivers/rtc/rtc-max6902.c
+++ b/drivers/rtc/rtc-max6902.c
@@ -154,7 +154,6 @@ static int __devexit max6902_remove(struct spi_device *spi)
 static struct spi_driver max6902_driver = {
 	.driver = {
 		.name	= "rtc-max6902",
-		.bus	= &spi_bus_type,
 		.owner	= THIS_MODULE,
 	},
 	.probe	= max6902_probe,
diff --git a/drivers/rtc/rtc-pcf2123.c b/drivers/rtc/rtc-pcf2123.c
index 2ee3bbf..b46c400 100644
--- a/drivers/rtc/rtc-pcf2123.c
+++ b/drivers/rtc/rtc-pcf2123.c
@@ -340,7 +340,6 @@ static int __devexit pcf2123_remove(struct spi_device *spi)
 static struct spi_driver pcf2123_driver = {
 	.driver	= {
 			.name	= "rtc-pcf2123",
-			.bus	= &spi_bus_type,
 			.owner	= THIS_MODULE,
 	},
 	.probe	= pcf2123_probe,
diff --git a/drivers/rtc/rtc-rs5c348.c b/drivers/rtc/rtc-rs5c348.c
index 971bc8e..ce2ca85 100644
--- a/drivers/rtc/rtc-rs5c348.c
+++ b/drivers/rtc/rtc-rs5c348.c
@@ -229,7 +229,6 @@ static int __devexit rs5c348_remove(struct spi_device *spi)
 static struct spi_driver rs5c348_driver = {
 	.driver = {
 		.name	= "rtc-rs5c348",
-		.bus	= &spi_bus_type,
 		.owner	= THIS_MODULE,
 	},
 	.probe	= rs5c348_probe,
-- 
1.7.7.1



^ permalink raw reply related	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2011-12-12 14:37 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-24 15:29 [PATCH 01/11] RTC: Remove redundant spi driver bus initialization Lars-Peter Clausen
2011-11-24 15:29 ` [PATCH 02/11] TTY: " Lars-Peter Clausen
2011-11-27  4:17   ` Greg KH
2011-11-24 15:29 ` [PATCH 03/11] Input: " Lars-Peter Clausen
2011-11-24 15:29 ` [PATCH 04/11] hwmon: " Lars-Peter Clausen
2011-11-25  9:58   ` Guenter Roeck
2011-11-25 13:02     ` Jean Delvare
2011-11-25 17:29   ` Guenter Roeck
2011-11-24 15:29 ` [PATCH 05/11] mfd: " Lars-Peter Clausen
2011-11-24 15:29   ` Mark Brown
2011-12-12 14:42   ` Samuel Ortiz
2011-11-24 15:29 ` [PATCH 06/11] mtd: " Lars-Peter Clausen
2011-12-01  7:58   ` Artem Bityutskiy
2011-11-24 15:29 ` [PATCH 07/11] mmc: " Lars-Peter Clausen
2011-12-01 18:39   ` Chris Ball
2011-11-24 15:29 ` [PATCH 08/11] blacklight: " Lars-Peter Clausen
2011-11-24 15:29 ` [PATCH 09/11] video: " Lars-Peter Clausen
2011-11-29 10:19   ` Tomi Valkeinen
2011-12-04  0:36   ` Florian Tobias Schandinat
2011-11-24 15:29 ` [PATCH 10/11] wireless: " Lars-Peter Clausen
2011-11-28  7:20   ` Luciano Coelho
2011-11-24 15:29 ` [PATCH 11/11] can: " Lars-Peter Clausen
2011-11-24 15:36   ` Marc Kleine-Budde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox