Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97594
b: refs/heads/master
c: 1f42ea7
h: refs/heads/master
v: v3
  • Loading branch information
James Bottomley authored and James Bottomley committed May 23, 2008
1 parent 906a394 commit dfbaac7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7853099a70742b2a3c753282e5ccfbdda86cb29f
refs/heads/master: 1f42ea7bc0ddfadebd9e1c5362b41b53902dbcb1
7 changes: 6 additions & 1 deletion trunk/drivers/scsi/scsi_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,12 @@ static int scsi_bus_match(struct device *dev, struct device_driver *gendrv)

static int scsi_bus_uevent(struct device *dev, struct kobj_uevent_env *env)
{
struct scsi_device *sdev = to_scsi_device(dev);
struct scsi_device *sdev;

if (dev->type != &scsi_dev_type)
return 0;

sdev = to_scsi_device(dev);

add_uevent_var(env, "MODALIAS=" SCSI_DEVICE_MODALIAS_FMT, sdev->type);
return 0;
Expand Down

0 comments on commit dfbaac7

Please sign in to comment.