* + drivers-rtc-remove-redundant-spi-driver-bus-initialization.patch added to -mm tree
@ 2011-12-21 0:53 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2011-12-21 0:53 UTC (permalink / raw)
To: mm-commits; +Cc: lars, a.zummo, grant.likely, john.stultz
The patch titled
Subject: drivers/rtc/: remove redundant spi driver bus initialization
has been added to the -mm tree. Its filename is
drivers-rtc-remove-redundant-spi-driver-bus-initialization.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
From: Lars-Peter Clausen <lars@metafoo.de>
Subject: 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: Lars-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: Andrew Morton <akpm@linux-foundation.org>
---
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, 5 deletions(-)
diff -puN drivers/rtc/rtc-m41t93.c~drivers-rtc-remove-redundant-spi-driver-bus-initialization drivers/rtc/rtc-m41t93.c
--- a/drivers/rtc/rtc-m41t93.c~drivers-rtc-remove-redundant-spi-driver-bus-initialization
+++ a/drivers/rtc/rtc-m41t93.c
@@ -200,7 +200,6 @@ static int __devexit m41t93_remove(struc
static struct spi_driver m41t93_driver = {
.driver = {
.name = "rtc-m41t93",
- .bus = &spi_bus_type,
.owner = THIS_MODULE,
},
.probe = m41t93_probe,
diff -puN drivers/rtc/rtc-m41t94.c~drivers-rtc-remove-redundant-spi-driver-bus-initialization drivers/rtc/rtc-m41t94.c
--- a/drivers/rtc/rtc-m41t94.c~drivers-rtc-remove-redundant-spi-driver-bus-initialization
+++ a/drivers/rtc/rtc-m41t94.c
@@ -147,7 +147,6 @@ static int __devexit m41t94_remove(struc
static struct spi_driver m41t94_driver = {
.driver = {
.name = "rtc-m41t94",
- .bus = &spi_bus_type,
.owner = THIS_MODULE,
},
.probe = m41t94_probe,
diff -puN drivers/rtc/rtc-max6902.c~drivers-rtc-remove-redundant-spi-driver-bus-initialization drivers/rtc/rtc-max6902.c
--- a/drivers/rtc/rtc-max6902.c~drivers-rtc-remove-redundant-spi-driver-bus-initialization
+++ a/drivers/rtc/rtc-max6902.c
@@ -154,7 +154,6 @@ static int __devexit max6902_remove(stru
static struct spi_driver max6902_driver = {
.driver = {
.name = "rtc-max6902",
- .bus = &spi_bus_type,
.owner = THIS_MODULE,
},
.probe = max6902_probe,
diff -puN drivers/rtc/rtc-pcf2123.c~drivers-rtc-remove-redundant-spi-driver-bus-initialization drivers/rtc/rtc-pcf2123.c
--- a/drivers/rtc/rtc-pcf2123.c~drivers-rtc-remove-redundant-spi-driver-bus-initialization
+++ a/drivers/rtc/rtc-pcf2123.c
@@ -340,7 +340,6 @@ static int __devexit pcf2123_remove(stru
static struct spi_driver pcf2123_driver = {
.driver = {
.name = "rtc-pcf2123",
- .bus = &spi_bus_type,
.owner = THIS_MODULE,
},
.probe = pcf2123_probe,
diff -puN drivers/rtc/rtc-rs5c348.c~drivers-rtc-remove-redundant-spi-driver-bus-initialization drivers/rtc/rtc-rs5c348.c
--- a/drivers/rtc/rtc-rs5c348.c~drivers-rtc-remove-redundant-spi-driver-bus-initialization
+++ a/drivers/rtc/rtc-rs5c348.c
@@ -229,7 +229,6 @@ static int __devexit rs5c348_remove(stru
static struct spi_driver rs5c348_driver = {
.driver = {
.name = "rtc-rs5c348",
- .bus = &spi_bus_type,
.owner = THIS_MODULE,
},
.probe = rs5c348_probe,
_
Subject: Subject: drivers/rtc/: remove redundant spi driver bus initialization
Patches currently in -mm which might be from lars@metafoo.de are
linux-next.patch
rtc-convert-drivers-rtc-to-use-module_platform_driver.patch
drivers-rtc-rtc-jz4740c-make-jz4740_rtc_driver-static.patch
drivers-rtc-remove-redundant-spi-driver-bus-initialization.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-12-21 0:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-21 0:53 + drivers-rtc-remove-redundant-spi-driver-bus-initialization.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.