Messages in this thread |  | | | Date | Wed, 7 Jul 2004 14:16:57 -0700 | | From | Greg KH <> | | Subject | Re: [Pcihpd-discuss] [PATCH] 2.6 PCI Hotplug: receive PPC64 EEH events |
| |
On Wed, Jul 07, 2004 at 03:59:07PM -0500, linas@austin.ibm.com wrote: > +static struct notifier_block eeh_block; > + > +void __init init_eeh_handler (void) > +{ > + eeh_block.notifier_call = handle_eeh_events; > + eeh_register_notifier (&eeh_block); > +} > + > +void __exit exit_eeh_handler (void) > +{ > + eeh_block.notifier_call = handle_eeh_events; > + eeh_register_notifier (&eeh_block); > +} > +
Um, I don't think you want your exit_* function to look identical to your init_* function :)
greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |