Taku Izumi wrote:
This patch creates the symlink to the hotplug driver at the hotplug slot directory (/sys/bus/pci/slots/<slot_name>). As a result, we can know easily what driver manages the hotplug slot. <changelog> - change the symlink name from driver name to "driver" according to Kenji-san's comment. Signed-off-by: Taku Izumi <izumi.taku@xxxxxxxxxxxxxx>
I tested your patch and I found the following problems. - Symbolic link is not created when the hotplug controller driver is configured as a built-in module. The reason is the "owner" field in struct hotplug_slot_ops (initialized by THIS_MODULE) is NULL in this case. - Build error when CONFIG_MODULES is not set. The reason is struct module is not defined. I'll send the updated patch soon. Thanks, Kenji Kaneshige -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html