All of lore.kernel.org
 help / color / mirror / Atom feed
* + ipmi-add-pci-remove-handling.patch added to -mm tree
@ 2007-02-15 22:21 akpm
  0 siblings, 0 replies; 3+ messages in thread
From: akpm @ 2007-02-15 22:21 UTC (permalink / raw)
  To: mm-commits; +Cc: minyard


The patch titled
     ipmi: add pci remove handling
has been added to the -mm tree.  Its filename is
     ipmi-add-pci-remove-handling.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: ipmi: add pci remove handling
From: Corey Minyard <minyard@acm.org>

Add pci_remove handling to the driver, so it will clean up if
the device is hot-removed.

Signed-off-by: Corey Minyard <minyard@acm.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/char/ipmi/ipmi_si_intf.c |    3 +++
 1 files changed, 3 insertions(+)

diff -puN drivers/char/ipmi/ipmi_si_intf.c~ipmi-add-pci-remove-handling drivers/char/ipmi/ipmi_si_intf.c
--- a/drivers/char/ipmi/ipmi_si_intf.c~ipmi-add-pci-remove-handling
+++ a/drivers/char/ipmi/ipmi_si_intf.c
@@ -2189,12 +2189,15 @@ static int __devinit ipmi_pci_probe(stru
 		info->irq_setup = std_irq_setup;
 
 	info->dev = &pdev->dev;
+	pdev->dev.driver_data = info;
 
 	return try_smi_init(info);
 }
 
 static void __devexit ipmi_pci_remove(struct pci_dev *pdev)
 {
+	struct smi_info *info = pdev->dev.driver_data;
+	cleanup_one_si(info);
 }
 
 #ifdef CONFIG_PM
_

Patches currently in -mm which might be from minyard@acm.org are

origin.patch
ipmi-add-powerpc-openfirmware-sensing.patch
ipmi-allow-shared-interrupts.patch
ipmi-add-new-ipmi-nmi-watchdog-handling.patch
ipmi-add-pci-remove-handling.patch

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

* + ipmi-add-pci-remove-handling.patch added to -mm tree
@ 2007-02-16 21:41 akpm
  0 siblings, 0 replies; 3+ messages in thread
From: akpm @ 2007-02-16 21:41 UTC (permalink / raw)
  To: mm-commits; +Cc: minyard


The patch titled
     ipmi: add pci remove handling
has been added to the -mm tree.  Its filename is
     ipmi-add-pci-remove-handling.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: ipmi: add pci remove handling
From: Corey Minyard <minyard@acm.org>

Add pci_remove handling to the driver, so it will clean up if
the device is hot-removed.

Signed-off-by: Corey Minyard <minyard@acm.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/char/ipmi/ipmi_si_intf.c |    3 +++
 1 files changed, 3 insertions(+)

diff -puN drivers/char/ipmi/ipmi_si_intf.c~ipmi-add-pci-remove-handling drivers/char/ipmi/ipmi_si_intf.c
--- a/drivers/char/ipmi/ipmi_si_intf.c~ipmi-add-pci-remove-handling
+++ a/drivers/char/ipmi/ipmi_si_intf.c
@@ -2189,12 +2189,15 @@ static int __devinit ipmi_pci_probe(stru
 		info->irq_setup = std_irq_setup;
 
 	info->dev = &pdev->dev;
+	pci_set_drvdata(pdev, info);
 
 	return try_smi_init(info);
 }
 
 static void __devexit ipmi_pci_remove(struct pci_dev *pdev)
 {
+	struct smi_info *info = pci_get_drvdata(pdev);
+	cleanup_one_si(info);
 }
 
 #ifdef CONFIG_PM
_

Patches currently in -mm which might be from minyard@acm.org are

origin.patch
ipmi-add-powerpc-openfirmware-sensing.patch
ipmi-allow-shared-interrupts.patch
ipmi-add-new-ipmi-nmi-watchdog-handling.patch
ipmi-add-pci-remove-handling.patch

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

* + ipmi-add-pci-remove-handling.patch added to -mm tree
@ 2007-02-15  3:57 akpm
  0 siblings, 0 replies; 3+ messages in thread
From: akpm @ 2007-02-15  3:57 UTC (permalink / raw)
  To: mm-commits; +Cc: minyard


The patch titled
     ipmi: add pci remove handling
has been added to the -mm tree.  Its filename is
     ipmi-add-pci-remove-handling.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: ipmi: add pci remove handling
From: Corey Minyard <minyard@acm.org>

Add pci_remove handling to the driver, so it will clean up if the device is
hot-removed.

Signed-off-by: Corey Minyard <minyard@acm.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/char/ipmi/ipmi_si_intf.c |    3 +++
 1 file changed, 3 insertions(+)

diff -puN drivers/char/ipmi/ipmi_si_intf.c~ipmi-add-pci-remove-handling drivers/char/ipmi/ipmi_si_intf.c
--- a/drivers/char/ipmi/ipmi_si_intf.c~ipmi-add-pci-remove-handling
+++ a/drivers/char/ipmi/ipmi_si_intf.c
@@ -2189,12 +2189,15 @@ static int __devinit ipmi_pci_probe(stru
 		info->irq_setup = std_irq_setup;
 
 	info->dev = &pdev->dev;
+	pdev->dev->driver_data = info;
 
 	return try_smi_init(info);
 }
 
 static void __devexit ipmi_pci_remove(struct pci_dev *pdev)
 {
+	struct smi_info *info = pdev->dev->driver_data;
+	cleanup_one_si(info);
 }
 
 #ifdef CONFIG_PM
_

Patches currently in -mm which might be from minyard@acm.org are

origin.patch
sysctl-ipmi-remove-unnecessary-insert_at_head-flag.patch
sysctl-remove-insert_at_head-from-register_sysctl.patch
ipmi-add-powerpc-openfirmware-sensing.patch
ipmi-allow-shared-interrupts.patch
ipmi-add-pci-remove-handling.patch
ipmi-add-new-ipmi-nmi-watchdog-handling.patch

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

end of thread, other threads:[~2007-02-16 21:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-15 22:21 + ipmi-add-pci-remove-handling.patch added to -mm tree akpm
  -- strict thread matches above, loose matches on Subject: below --
2007-02-16 21:41 akpm
2007-02-15  3:57 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.