aboutsummaryrefslogtreecommitdiff
path: root/drivers/ata/ata_piix.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/ata_piix.c')
-rw-r--r--drivers/ata/ata_piix.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c
index ef773e12af7..f66b1f0daae 100644
--- a/drivers/ata/ata_piix.c
+++ b/drivers/ata/ata_piix.c
@@ -1727,10 +1727,16 @@ static void piix_remove_one(struct pci_dev *pdev)
ata_pci_remove_one(pdev);
}
+static bool disable_driver = 0;
static int __init piix_init(void)
{
int rc;
+ if (disable_driver) {
+ printk(KERN_WARNING "ata_piix: driver disabled completely\n");
+ return 0;
+ }
+
DPRINTK("pci_register_driver\n");
rc = pci_register_driver(&piix_pci_driver);
if (rc)
@@ -1747,5 +1753,6 @@ static void __exit piix_exit(void)
pci_unregister_driver(&piix_pci_driver);
}
+module_param(disable_driver, bool, 0);
module_init(piix_init);
module_exit(piix_exit);