Re: about probing a device

From: Cornelia Huck
Date: Wed Oct 10 2007 - 12:26:19 EST


On Wed, 10 Oct 2007 23:50:01 +0800,
wit <is01kzh@xxxxxxxxx> wrote:

> > The first one which matches and successfully attaches "wins".
>
> Seems that calling the bind routine can bind a driver to a device. Is
> there any bad side effect of doing such thing?

If the device is already bound to another driver, it will fail.

If you have multiple drivers for the same device, just use the drivers'
bind/unbind attributes if the wrong one "won".
-
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/