]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/pci/pci-driver.c
drm/i915: Skip SDVO/HDMI init when the chipset tells us it's not present.
[linux-2.6-omap-h63xx.git] / drivers / pci / pci-driver.c
index 4884c4840b3d317bca74b9d5d76a2c7978dfee52..ab1d615425a8858248b61efe4a5ed22fcfa764db 100644 (file)
@@ -669,7 +669,10 @@ static int pci_pm_poweroff(struct device *dev)
        if (pci_has_legacy_pm_support(pci_dev))
                return pci_legacy_suspend(dev, PMSG_HIBERNATE);
 
-       if (drv && drv->pm && drv->pm->poweroff) {
+       if (!drv || !drv->pm)
+               return 0;
+
+       if (drv->pm->poweroff) {
                error = drv->pm->poweroff(dev);
                suspend_report_result(drv->pm->poweroff, error);
        }