aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/platform/x86/intel_ips.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/platform/x86/intel_ips.c b/drivers/platform/x86/intel_ips.c
index afe82e50dfea..fad59b69a69c 100644
--- a/drivers/platform/x86/intel_ips.c
+++ b/drivers/platform/x86/intel_ips.c
@@ -1432,6 +1432,12 @@ static int ips_probe(struct pci_dev *dev, const struct pci_device_id *id)
1432 1432
1433 spin_lock_init(&ips->turbo_status_lock); 1433 spin_lock_init(&ips->turbo_status_lock);
1434 1434
1435 ret = pci_enable_device(dev);
1436 if (ret) {
1437 dev_err(&dev->dev, "can't enable PCI device, aborting\n");
1438 goto error_free;
1439 }
1440
1435 if (!pci_resource_start(dev, 0)) { 1441 if (!pci_resource_start(dev, 0)) {
1436 dev_err(&dev->dev, "TBAR not assigned, aborting\n"); 1442 dev_err(&dev->dev, "TBAR not assigned, aborting\n");
1437 ret = -ENXIO; 1443 ret = -ENXIO;
@@ -1444,11 +1450,6 @@ static int ips_probe(struct pci_dev *dev, const struct pci_device_id *id)
1444 goto error_free; 1450 goto error_free;
1445 } 1451 }
1446 1452
1447 ret = pci_enable_device(dev);
1448 if (ret) {
1449 dev_err(&dev->dev, "can't enable PCI device, aborting\n");
1450 goto error_free;
1451 }
1452 1453
1453 ips->regmap = ioremap(pci_resource_start(dev, 0), 1454 ips->regmap = ioremap(pci_resource_start(dev, 0),
1454 pci_resource_len(dev, 0)); 1455 pci_resource_len(dev, 0));