summaryrefslogtreecommitdiffstats
path: root/drivers/ata/ahci.c
diff options
context:
space:
mode:
authorJavier Martinez Canillas2016-05-18 22:11:28 +0200
committerTejun Heo2016-05-27 17:27:23 +0200
commit5219d6530ef0bca37bd8c4c637908638ce205ff9 (patch)
tree179e2f2b9515fc26f2d583f1248ff4229522fafc /drivers/ata/ahci.c
parentMAINTAINERS: Add file patterns for ata device tree bindings (diff)
downloadkernel-qcow2-linux-5219d6530ef0bca37bd8c4c637908638ce205ff9.tar.gz
kernel-qcow2-linux-5219d6530ef0bca37bd8c4c637908638ce205ff9.tar.xz
kernel-qcow2-linux-5219d6530ef0bca37bd8c4c637908638ce205ff9.zip
ata: Use IS_ENABLED() instead of checking for built-in or module
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either built-in or as a module, use that macro instead of open coding the same. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/ahci.c')
-rw-r--r--drivers/ata/ahci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index a83bbcc58b4c..90eabaf81215 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -580,7 +580,7 @@ static struct pci_driver ahci_pci_driver = {
},
};
-#if defined(CONFIG_PATA_MARVELL) || defined(CONFIG_PATA_MARVELL_MODULE)
+#if IS_ENABLED(CONFIG_PATA_MARVELL)
static int marvell_enable;
#else
static int marvell_enable = 1;