m68k/atari, m68k/sun3: Fix SCSI platform device registration when driver is modular
authorFinn Thain <fthain@telegraphics.com.au>
Fri, 18 Dec 2015 01:44:28 +0000 (12:44 +1100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 10 Jan 2016 12:56:40 +0000 (13:56 +0100)
Fixes: 3ff228af84b5 ("atari_scsi: Convert to platform device")
Fixes: 0d31f8759109 ("sun3_scsi: Convert to platform device")
Reported-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/atari/config.c
arch/m68k/sun3/config.c

index 192b00f098f4367c74bdbcec5717077d22d32589..cbd5991fd49aa875fb189931d9afc27f720b0c71 100644 (file)
@@ -858,7 +858,7 @@ static struct platform_device *atari_netusbee_devices[] __initdata = {
 };
 #endif /* CONFIG_ATARI_ETHERNEC */
 
-#ifdef CONFIG_ATARI_SCSI
+#if IS_ENABLED(CONFIG_ATARI_SCSI)
 static const struct resource atari_scsi_st_rsrc[] __initconst = {
        {
                .flags = IORESOURCE_IRQ,
@@ -910,7 +910,7 @@ int __init atari_platform_init(void)
        }
 #endif
 
-#ifdef CONFIG_ATARI_SCSI
+#if IS_ENABLED(CONFIG_ATARI_SCSI)
        if (ATARIHW_PRESENT(ST_SCSI))
                platform_device_register_simple("atari_scsi", -1,
                        atari_scsi_st_rsrc, ARRAY_SIZE(atari_scsi_st_rsrc));
index a8b942bf71638c9778dd8fff05c63797202edd61..3f06a5d01fbc21baf4b3743215a2b8688872e933 100644 (file)
@@ -171,7 +171,7 @@ static void __init sun3_sched_init(irq_handler_t timer_routine)
         intersil_clear();
 }
 
-#ifdef CONFIG_SUN3_SCSI
+#if IS_ENABLED(CONFIG_SUN3_SCSI)
 
 static const struct resource sun3_scsi_vme_rsrc[] __initconst = {
        {