]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
ssb: Make bus registration failure not be silent
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 23 Apr 2010 18:17:21 +0000 (13:17 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 26 Apr 2010 18:21:23 +0000 (14:21 -0400)
In kernel Bugzilla #15825, a case where routine ssb_bus_pcibus_register()
fails silently is reported. The cause for the failure is still being
investigated; however, the diagnosis would be easier if the failure
had been reported.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/ssb/main.c

index 03dfd27c4bfba8cb78df400a12589be531879f6b..009e3204caac21cff570a8019449d39225e5b597 100644 (file)
@@ -833,6 +833,9 @@ int ssb_bus_pcibus_register(struct ssb_bus *bus,
        if (!err) {
                ssb_printk(KERN_INFO PFX "Sonics Silicon Backplane found on "
                           "PCI device %s\n", dev_name(&host_pci->dev));
+       } else {
+               ssb_printk(KERN_ERR PFX "Failed to register PCI version"
+                          " of SSB with error %d\n", err);
        }
 
        return err;