On Mon, 2010-06-14 at 09:46 -0700, Greg KH wrote: > On Sat, Jun 12, 2010 at 03:54:04PM +0300, Maxim Levitsky wrote: > > Hi, > > > > I have written a driver for xD card reader and xD/SmartMedia FTL that is > > usually mandatory to use with xD cards. > > > > I think this can be added to 80-drivers.rule > > SUBSYSTEM=="mtd", RUN+="/sbin/modprobe sm_ftl" > > Why does this module not have the proper MODULE_DEVICE() or aliases in > it so that you don't have to manually load the module? This should not > need to be a udev rule. Well mtd system is not using bus model. However a card needs to be probed (theoteticly) by several high-level FTL drivers to make one of them to bind to it. (In fact several can bind at same now, which is both bad and good feature). I understand that module can have aliases so it can bind to a bus. Of course I can do a 'request_module', but I think it isn't nice thing to do. I can also attach alias to uevent which is sent to udev, but its also not easy to do with mtd. Best regards, Maxim Levitsky -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html