mISDN: hfcmulti display real PCI ids for not supported cards
authorKarsten Keil <keil@b1-systems.de>
Fri, 24 Jul 2009 16:41:23 +0000 (18:41 +0200)
committerKarsten Keil <keil@b1-systems.de>
Sat, 25 Jul 2009 18:23:22 +0000 (20:23 +0200)
In the PCI probe function struct pci_device_id points to the matched
entry of the ID table, but for devices which are matched with
PCI_ANY_ID sub IDs we want display the IDs of the device itself.

Signed-off-by: Karsten Keil <keil@b1-systems.de>
drivers/isdn/hardware/mISDN/hfcmulti.c

index fd77bb15d790db336517d6eac6aa877f5ffd1da5..faed794cf75afcf50b8312395b5a01e7b5174a8d 100644 (file)
@@ -5370,9 +5370,10 @@ hfcmulti_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
            ent->device == PCI_DEVICE_ID_CCD_HFC8S ||
            ent->device == PCI_DEVICE_ID_CCD_HFCE1)) {
                printk(KERN_ERR
-                   "Unknown HFC multiport controller (vendor:%x device:%x "
-                   "subvendor:%x subdevice:%x)\n", ent->vendor, ent->device,
-                   ent->subvendor, ent->subdevice);
+                   "Unknown HFC multiport controller (vendor:%04x device:%04x "
+                   "subvendor:%04x subdevice:%04x)\n", pdev->vendor,
+                   pdev->device, pdev->subsystem_vendor,
+                   pdev->subsystem_device);
                printk(KERN_ERR
                    "Please contact the driver maintainer for support.\n");
                return -ENODEV;