Re: [patch] ns558 bug

From: Andrew Morton
Date: Fri Feb 04 2005 - 23:04:22 EST


ambx1@xxxxxxxxxx (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.
-
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/