Re: [Pcihpd-discuss] [PATCH] 2.6 PCI Hotplug: receive PPC64 EEH events

From: Greg KH
Date: Wed Jul 07 2004 - 16:19:58 EST


On Wed, Jul 07, 2004 at 03:59:07PM -0500, linas@xxxxxxxxxxxxxx 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/