4829
4831
handler = dev_handlers[i];
4830
4832
if (strcmp (handler->subsystem, subsystem) == 0) {
4833
4836
if (strcmp (subsystem, "scsi") == 0)
4834
4837
if (missing_scsi_host (sysfs_path, (HotplugEvent *)end_token, HOTPLUG_ACTION_ADD))
4841
if ((check = hal_device_store_match_key_value_string (hald_get_gdl (), "linux.sysfs_path", sysfs_path)) != NULL ||
4842
(check = hal_device_store_match_key_value_string (hald_get_tdl (), "linux.sysfs_path", sysfs_path)) != NULL) {
4837
4850
/* attempt to add the device */
4838
4851
d = handler->add (sysfs_path, device_file, parent_dev, parent_path);