public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] Staging: vme_ca91cx42: use __dev{init,exit} for ->probe/remove
@ 2010-12-12  8:04 Namhyung Kim
  2010-12-12  8:04 ` [PATCH 2/2] Staging: vme_tsi148: " Namhyung Kim
  2010-12-13 18:26 ` [PATCH 1/2] Staging: vme_ca91cx42: " Greg KH
  0 siblings, 2 replies; 4+ messages in thread
From: Namhyung Kim @ 2010-12-12  8:04 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Martyn Welch; +Cc: devel, linux-kernel

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
---
 drivers/staging/vme/bridges/vme_ca91cx42.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/vme/bridges/vme_ca91cx42.c b/drivers/staging/vme/bridges/vme_ca91cx42.c
index 7db44fe32762..d1df7d12f504 100644
--- a/drivers/staging/vme/bridges/vme_ca91cx42.c
+++ b/drivers/staging/vme/bridges/vme_ca91cx42.c
@@ -35,8 +35,9 @@
 #include "vme_ca91cx42.h"
 
 static int __init ca91cx42_init(void);
-static int ca91cx42_probe(struct pci_dev *, const struct pci_device_id *);
-static void ca91cx42_remove(struct pci_dev *);
+static int __devinit ca91cx42_probe(struct pci_dev *,
+				    const struct pci_device_id *);
+static void __devexit ca91cx42_remove(struct pci_dev *);
 static void __exit ca91cx42_exit(void);
 
 /* Module parameters */
@@ -53,7 +54,7 @@ static struct pci_driver ca91cx42_driver = {
 	.name = driver_name,
 	.id_table = ca91cx42_ids,
 	.probe = ca91cx42_probe,
-	.remove = ca91cx42_remove,
+	.remove = __devexit_p(ca91cx42_remove),
 };
 
 static u32 ca91cx42_DMA_irqhandler(struct ca91cx42_driver *bridge)
@@ -1565,7 +1566,8 @@ static void ca91cx42_crcsr_exit(struct vme_bridge *ca91cx42_bridge,
 		bridge->crcsr_bus);
 }
 
-static int ca91cx42_probe(struct pci_dev *pdev, const struct pci_device_id *id)
+static int __devinit ca91cx42_probe(struct pci_dev *pdev,
+				    const struct pci_device_id *id)
 {
 	int retval, i;
 	u32 data;
@@ -1831,7 +1833,7 @@ err_struct:
 
 }
 
-void ca91cx42_remove(struct pci_dev *pdev)
+void __devexit ca91cx42_remove(struct pci_dev *pdev)
 {
 	struct list_head *pos = NULL;
 	struct vme_master_resource *master_image;
-- 
1.7.3.3.400.g93cef


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

* [PATCH 2/2] Staging: vme_tsi148: use __dev{init,exit} for ->probe/remove
  2010-12-12  8:04 [PATCH 1/2] Staging: vme_ca91cx42: use __dev{init,exit} for ->probe/remove Namhyung Kim
@ 2010-12-12  8:04 ` Namhyung Kim
  2010-12-13 18:26 ` [PATCH 1/2] Staging: vme_ca91cx42: " Greg KH
  1 sibling, 0 replies; 4+ messages in thread
From: Namhyung Kim @ 2010-12-12  8:04 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Martyn Welch; +Cc: devel, linux-kernel

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
---
 drivers/staging/vme/bridges/vme_tsi148.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/vme/bridges/vme_tsi148.c b/drivers/staging/vme/bridges/vme_tsi148.c
index 2f5b70986998..0ec9fa4768c2 100644
--- a/drivers/staging/vme/bridges/vme_tsi148.c
+++ b/drivers/staging/vme/bridges/vme_tsi148.c
@@ -35,8 +35,9 @@
 #include "vme_tsi148.h"
 
 static int __init tsi148_init(void);
-static int tsi148_probe(struct pci_dev *, const struct pci_device_id *);
-static void tsi148_remove(struct pci_dev *);
+static int __devinit tsi148_probe(struct pci_dev *,
+				  const struct pci_device_id *);
+static void __devexit tsi148_remove(struct pci_dev *);
 static void __exit tsi148_exit(void);
 
 
@@ -55,7 +56,7 @@ static struct pci_driver tsi148_driver = {
 	.name = driver_name,
 	.id_table = tsi148_ids,
 	.probe = tsi148_probe,
-	.remove = tsi148_remove,
+	.remove = __devexit_p(tsi148_remove),
 };
 
 static void reg_join(unsigned int high, unsigned int low,
@@ -2215,7 +2216,8 @@ static void tsi148_crcsr_exit(struct vme_bridge *tsi148_bridge,
 		bridge->crcsr_bus);
 }
 
-static int tsi148_probe(struct pci_dev *pdev, const struct pci_device_id *id)
+static int __devinit tsi148_probe(struct pci_dev *pdev,
+				  const struct pci_device_id *id)
 {
 	int retval, i, master_num;
 	u32 data;
@@ -2528,7 +2530,7 @@ err_struct:
 
 }
 
-static void tsi148_remove(struct pci_dev *pdev)
+static void __devexit tsi148_remove(struct pci_dev *pdev)
 {
 	struct list_head *pos = NULL;
 	struct vme_master_resource *master_image;
-- 
1.7.3.3.400.g93cef


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

* Re: [PATCH 1/2] Staging: vme_ca91cx42: use __dev{init,exit} for ->probe/remove
  2010-12-12  8:04 [PATCH 1/2] Staging: vme_ca91cx42: use __dev{init,exit} for ->probe/remove Namhyung Kim
  2010-12-12  8:04 ` [PATCH 2/2] Staging: vme_tsi148: " Namhyung Kim
@ 2010-12-13 18:26 ` Greg KH
  2010-12-14  4:43   ` Namhyung Kim
  1 sibling, 1 reply; 4+ messages in thread
From: Greg KH @ 2010-12-13 18:26 UTC (permalink / raw)
  To: Namhyung Kim; +Cc: Greg Kroah-Hartman, Martyn Welch, devel, linux-kernel

On Sun, Dec 12, 2010 at 05:04:27PM +0900, Namhyung Kim wrote:
> Signed-off-by: Namhyung Kim <namhyung@gmail.com>
> ---
>  drivers/staging/vme/bridges/vme_ca91cx42.c |   12 +++++++-----

This patch does not apply to the linux-next tree, what did you generate
it against?

Also, why are you marking these functions, is it really needed?  Same
thing for your 2/2 patch.

thanks,

greg k-h

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

* Re: [PATCH 1/2] Staging: vme_ca91cx42: use __dev{init,exit} for ->probe/remove
  2010-12-13 18:26 ` [PATCH 1/2] Staging: vme_ca91cx42: " Greg KH
@ 2010-12-14  4:43   ` Namhyung Kim
  0 siblings, 0 replies; 4+ messages in thread
From: Namhyung Kim @ 2010-12-14  4:43 UTC (permalink / raw)
  To: Greg KH; +Cc: Greg Kroah-Hartman, Martyn Welch, devel, linux-kernel

2010-12-13 (월), 10:26 -0800, Greg KH:
> On Sun, Dec 12, 2010 at 05:04:27PM +0900, Namhyung Kim wrote:
> > Signed-off-by: Namhyung Kim <namhyung@gmail.com>
> > ---
> >  drivers/staging/vme/bridges/vme_ca91cx42.c |   12 +++++++-----
> 
> This patch does not apply to the linux-next tree, what did you generate
> it against?
> 

Argh.. sorry, it was Linus's tree. Will resend if you want.


> Also, why are you marking these functions, is it really needed?  Same
> thing for your 2/2 patch.
> 

?? Maybe I don't get what you mean exactly.. They are hotplugging
stuffs, right? So shouldn't they be marked as such?


-- 
Regards,
Namhyung Kim



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

end of thread, other threads:[~2010-12-14  4:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-12  8:04 [PATCH 1/2] Staging: vme_ca91cx42: use __dev{init,exit} for ->probe/remove Namhyung Kim
2010-12-12  8:04 ` [PATCH 2/2] Staging: vme_tsi148: " Namhyung Kim
2010-12-13 18:26 ` [PATCH 1/2] Staging: vme_ca91cx42: " Greg KH
2010-12-14  4:43   ` Namhyung Kim

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