From mboxrd@z Thu Jan 1 00:00:00 1970 From: akpm@linux-foundation.org Subject: + ipmi-add-pci-remove-handling.patch added to -mm tree Date: Thu, 15 Feb 2007 14:21:58 -0800 Message-ID: <200702152221.l1FMLwiv010492@shell0.pdx.osdl.net> Reply-To: linux-kernel@vger.kernel.org Return-path: Received: from smtp.osdl.org ([65.172.181.24]:36953 "EHLO smtp.osdl.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161527AbXBOWWF (ORCPT ); Thu, 15 Feb 2007 17:22:05 -0500 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: mm-commits@vger.kernel.org Cc: minyard@acm.org 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 Add pci_remove handling to the driver, so it will clean up if the device is hot-removed. Signed-off-by: Corey Minyard Signed-off-by: Andrew Morton --- 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