Re: [patch] fix driver_register() return value
From: Stas Sergeev
Date: Sat Oct 17 2009 - 16:59:07 EST
18.10.2009 00:46, Greg KH wrote:
Returning -EBUSY fixes the problem.
Signed-off-by: Stas Sergeev<stsp@xxxxxxxx>
Does this cause problems with the way things now are? If so, what are
they?
They are simple.
Suppose the pcspkr driver was loaded
by the udev. Then someone types:
modprobe snd-pcsp
and that doesn't print anything, so
he thinks the snd-pcsp was loaded and
asks me why there is no sound. :)
Only by typing "dmesg" you can see what
actually happened, but it would be better
to have that from modprobe too.
Does this change need to be backported to older -stable kernels?
I think it can't hurt.
--
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/