Re: [patch] ns558 bug

Andrew Morton
2005-02-05T04:01:47Z

ambx1@neo.rr.com (Adam Belay) wrote:
>
> As a more general solution for all drivers, I've been thinking about doing
> something like this in the long term.
>
> int ret;
> if (!(ret = register_driver(&ns558_driver)))
> return ret;
> add_driver_protocol(&ns558_driver, &ns558_pnp);
> add_driver_protocol(&ns558_driver, &ns558_isa);
>
> and then on exit:
>
> unregister_driver(&ns558_driver); /* this tears down any successfully
> registered bus protocol automatically */
>
>
> For now a less invasive solution might be better.

Well the thing oopses the kernel at present. Your call, Adam. Something
to make it work acceptably for now would suit.