diff --git a/drivers/scsi/megaraid.c b/drivers/scsi/megaraid.c
index 94008551f7ba1ead2df79badd4c4c5324688bd4b..172181d0bc69e175ae21507286d24116bb2d9ed7 100644
--- a/drivers/scsi/megaraid.c
+++ b/drivers/scsi/megaraid.c
@@ -4613,6 +4613,7 @@ megaraid_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
 
 	if (pci_enable_device(pdev))
 		goto out;
+	pci_set_master(pdev);
 
 	pci_bus = pdev->bus->number;
 	pci_dev_func = pdev->devfn;