Skip to contentSkip to conversation

pci/pci-driver: Set pci interface in uppercase

PATCH New rh_ 1 participant 1 message Sep 3, 2014 PCI

lore
Share & tools
lore

rh_

author
#0 lore raw

PATCH 1/1 pci/pci-driver: Set pci interface in uppercase

It seems to me this needs to go along with previous patch from

http://marc.info/?l=linux-kernel&m=140914429629912&w=2

Ricardo Ribalda Delgado <[email protected]>
Subject: [PATCH] pci/pci-sysfs: Set pci interface in uppercase
Date: Wed, 27 Aug 2014 14:57:57 +0200

drivers/pci/pci-driver.c +1 -1
index d04c5ad..1fce3b7 100644
@@ -1392,7 +1392,7 @@ static int pci_uevent(struct device *dev, struct kobj_uevent_env *env)
 	if (add_uevent_var(env, "PCI_SLOT_NAME=%s", pci_name(pdev)))
 		return -ENOMEM;
 
-	if (add_uevent_var(env, "MODALIAS=pci:v%08Xd%08Xsv%08Xsd%08Xbc%02Xsc%02Xi%02x",
+	if (add_uevent_var(env, "MODALIAS=pci:v%08Xd%08Xsv%08Xsd%08Xbc%02Xsc%02Xi%02X",
 			   pdev->vendor, pdev->device,
 			   pdev->subsystem_vendor, pdev->subsystem_device,
 			   (u8)(pdev->class >> 16), (u8)(pdev->class >> 8),