All of lore.kernel.org
 help / color / mirror / Atom feed
* + timbuart-use-__devinit-and-__devexit-macros-for-probe-and-remove.patch added to -mm tree
@ 2010-07-09 19:44 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2010-07-09 19:44 UTC (permalink / raw)
  To: mm-commits; +Cc: richard.rojfors, greg


The patch titled
     timbuart: use __devinit and __devexit macros for probe and remove
has been added to the -mm tree.  Its filename is
     timbuart-use-__devinit-and-__devexit-macros-for-probe-and-remove.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/

------------------------------------------------------
Subject: timbuart: use __devinit and __devexit macros for probe and remove
From: Richard Röjfors <richard.rojfors@pelagicore.com>

Move the probe and remove functions to the devinit and devexit sections.

Signed-off-by: Richard Röjfors <richard.rojfors@pelagicore.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/serial/timbuart.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff -puN drivers/serial/timbuart.c~timbuart-use-__devinit-and-__devexit-macros-for-probe-and-remove drivers/serial/timbuart.c
--- a/drivers/serial/timbuart.c~timbuart-use-__devinit-and-__devexit-macros-for-probe-and-remove
+++ a/drivers/serial/timbuart.c
@@ -423,7 +423,7 @@ static struct uart_driver timbuart_drive
 	.nr = 1
 };
 
-static int timbuart_probe(struct platform_device *dev)
+static int __devinit timbuart_probe(struct platform_device *dev)
 {
 	int err, irq;
 	struct timbuart_port *uart;
@@ -489,7 +489,7 @@ err_mem:
 	return err;
 }
 
-static int timbuart_remove(struct platform_device *dev)
+static int __devexit timbuart_remove(struct platform_device *dev)
 {
 	struct timbuart_port *uart = platform_get_drvdata(dev);
 
@@ -507,7 +507,7 @@ static struct platform_driver timbuart_p
 		.owner	= THIS_MODULE,
 	},
 	.probe		= timbuart_probe,
-	.remove		= timbuart_remove,
+	.remove		= __devexit_p(timbuart_remove),
 };
 
 /*--------------------------------------------------------------------------*/
_

Patches currently in -mm which might be from richard.rojfors@pelagicore.com are

linux-next.patch
timbuart-use-__devinit-and-__devexit-macros-for-probe-and-remove.patch
sdhci-pltfm-switch-to-module-device-table-matching.patch
sdhci-pltfm-reorganize-makefile-entries-to-support-soc-devices.patch
sdhci-pltfm-add-support-for-cns3xxx-soc-devices.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-07-09 19:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-09 19:44 + timbuart-use-__devinit-and-__devexit-macros-for-probe-and-remove.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.