diff mbox series

[v2,2/2] ata: ata_generic: use IS_ENABLED() macro

Message ID 4ea0407c-46f5-4744-8642-1c7da52a7d7e@omp.ru
State New
Headers show
Series ata: ata_generic: clarify about Toshiba Piccolo support | expand

Commit Message

Sergey Shtylyov Oct. 20, 2024, 4:50 p.m. UTC
Replace the explicit defined(CONFIG_PATA_TOSHIBA[_MODULE]) checks with
the new-fangled IS_ENABLED() check in the ata_generic[] definition...

Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>

---
Changes in version 2:
- refreshed atop of the newly added patch #1;
- rephrased the patch description.

 drivers/ata/ata_generic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/ata/ata_generic.c b/drivers/ata/ata_generic.c
index d6c210510c36..d5b2fa2ba6ad 100644
--- a/drivers/ata/ata_generic.c
+++ b/drivers/ata/ata_generic.c
@@ -225,7 +225,7 @@  static struct pci_device_id ata_generic[] = {
 	 * these chips were handled by the generic driver; keep the
 	 * old behavior if the dedicated driver is not enabled...
 	 */
-#if !defined(CONFIG_PATA_TOSHIBA) && !defined(CONFIG_PATA_TOSHIBA_MODULE)
+#if !IS_ENABLED(CONFIG_PATA_TOSHIBA)
 	{ PCI_DEVICE(PCI_VENDOR_ID_TOSHIBA,PCI_DEVICE_ID_TOSHIBA_PICCOLO_1), },
 	{ PCI_DEVICE(PCI_VENDOR_ID_TOSHIBA,PCI_DEVICE_ID_TOSHIBA_PICCOLO_2),  },
 	{ PCI_DEVICE(PCI_VENDOR_ID_TOSHIBA,PCI_DEVICE_ID_TOSHIBA_PICCOLO_3),  },