Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1248
b: refs/heads/master
c: d1ded20
h: refs/heads/master
v: v3
  • Loading branch information
Greg KH committed May 17, 2005
1 parent f422a7e commit 45dadc1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9888549e0507cc95d1d7ade1595c00ff8e902659
refs/heads/master: d1ded203adf16b42ca90e9041120ae465ca5c4a6
10 changes: 10 additions & 0 deletions trunk/drivers/pci/hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ int pci_hotplug (struct device *dev, char **envp, int num_envp,
if ((buffer_size - length <= 0) || (i >= num_envp))
return -ENOMEM;

envp[i++] = scratch;
length += scnprintf (scratch, buffer_size - length,
"MODALIAS=pci:v%08Xd%08Xsv%08Xsd%08Xbc%02Xsc%02Xi%02x\n",
pdev->vendor, pdev->device,
pdev->subsystem_vendor, pdev->subsystem_device,
(u8)(pdev->class >> 16), (u8)(pdev->class >> 8),
(u8)(pdev->class));
if ((buffer_size - length <= 0) || (i >= num_envp))
return -ENOMEM;

envp[i] = NULL;

return 0;
Expand Down

0 comments on commit 45dadc1

Please sign in to comment.