aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPierre Ossman <drzeus@drzeus.cx>2006-06-30 05:22:22 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-07-02 11:02:01 -0400
commit51f82bc07a9673d790c2a17de8e3fa8046543f04 (patch)
tree1bd7a839f07fb63dc23c79708a64b4513d4c3179 /drivers
parent8ef1a14379e105c1419d21e96ffac53202bc0501 (diff)
[MMC] sdhci: print device id
As sdhci is a generic driver, it is helpful to see some more specific identification of the actual hardware in dmesg. PCI vendor, device and revision is sufficient in most cases. Signed-off-by: Pierre Ossman <drzeus@drzeus.cx> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/sdhci.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
index 0d9c327a84b0..405b6158cb6c 100644
--- a/drivers/mmc/sdhci.c
+++ b/drivers/mmc/sdhci.c
@@ -1151,13 +1151,18 @@ static int __devinit sdhci_probe(struct pci_dev *pdev,
1151 const struct pci_device_id *ent) 1151 const struct pci_device_id *ent)
1152{ 1152{
1153 int ret, i; 1153 int ret, i;
1154 u8 slots; 1154 u8 slots, rev;
1155 struct sdhci_chip *chip; 1155 struct sdhci_chip *chip;
1156 1156
1157 BUG_ON(pdev == NULL); 1157 BUG_ON(pdev == NULL);
1158 BUG_ON(ent == NULL); 1158 BUG_ON(ent == NULL);
1159 1159
1160 DBG("found at %s\n", pci_name(pdev)); 1160 pci_read_config_byte(pdev, PCI_CLASS_REVISION, &rev);
1161
1162 printk(KERN_INFO DRIVER_NAME
1163 ": SDHCI controller found at %s [%04x:%04x] (rev %x)\n",
1164 pci_name(pdev), (int)pdev->vendor, (int)pdev->device,
1165 (int)rev);
1161 1166
1162 ret = pci_read_config_byte(pdev, PCI_SLOT_INFO, &slots); 1167 ret = pci_read_config_byte(pdev, PCI_SLOT_INFO, &slots);
1163 if (ret) 1168 if (ret)