Am Donnerstag, 15. Februar 2007 schrieb Corey Minyard: > On Thu, Feb 15, 2007 at 02:27:45AM -0800, Andrew Morton wrote: > > Judging from the patch headers you were working against 2.6.19, which is > > most optimistic. Please always prepare and test patches against the > > latest kernel. > > Well, I had it applied against a 2.6.20 kernel, but I messed up the > testing of it. Sorry, my bad. > > New patch... > > > Add pci_remove handling to the driver, so it will clean up if > the device is hot-removed. > > Signed-off-by: Corey Minyard <[email protected]> > > Index: linux-2.6.20/drivers/char/ipmi/ipmi_si_intf.c > =================================================================== > --- linux-2.6.20.orig/drivers/char/ipmi/ipmi_si_intf.c > +++ linux-2.6.20/drivers/char/ipmi/ipmi_si_intf.c > @@ -2191,12 +2191,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); > } Please use pci_{set,get}_drvdata() to access this field. Greetings, Eike
Attachment:
pgpM1LKWF8Eic.pgp
Description: PGP signature
- Follow-Ups:
- Re: [patch 3/4] ipmi: add pci remove handling
- From: Corey Minyard <[email protected]>
- Re: [patch 3/4] ipmi: add pci remove handling
- References:
- [patch 3/4] ipmi: add pci remove handling
- From: Corey Minyard <[email protected]>
- Re: [patch 3/4] ipmi: add pci remove handling
- From: Andrew Morton <[email protected]>
- Re: [patch 3/4] ipmi: add pci remove handling
- From: Corey Minyard <[email protected]>
- [patch 3/4] ipmi: add pci remove handling
- Prev by Date: Re: GPL vs non-GPL device drivers
- Next by Date: [PATCH] parport_pc: Fix parport_pc_probe_port section warning
- Previous by thread: Re: [patch 3/4] ipmi: add pci remove handling
- Next by thread: Re: [patch 3/4] ipmi: add pci remove handling
- Index(es):