public inbox for linux-m68k@lists.linux-m68k.org
 help / color / mirror / Atom feed
* [PATCH] m68k/atari, m68k/sun3: Fix SCSI platform device registration when driver is modular
@ 2015-12-18  1:44 Finn Thain
  2016-01-10 13:00 ` Geert Uytterhoeven
  0 siblings, 1 reply; 3+ messages in thread
From: Finn Thain @ 2015-12-18  1:44 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Michael Schmitz, linux-m68k


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>

Index: linux/arch/m68k/atari/config.c
===================================================================
--- linux.orig/arch/m68k/atari/config.c	2015-12-18 12:06:53.000000000 +1100
+++ linux/arch/m68k/atari/config.c	2015-12-18 12:07:00.000000000 +1100
@@ -858,7 +858,7 @@ static struct platform_device *atari_net
 };
 #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: linux/arch/m68k/sun3/config.c
===================================================================
--- linux.orig/arch/m68k/sun3/config.c	2015-12-18 12:06:53.000000000 +1100
+++ linux/arch/m68k/sun3/config.c	2015-12-18 12:07:00.000000000 +1100
@@ -171,7 +171,7 @@ static void __init sun3_sched_init(irq_h
         intersil_clear();
 }
 
-#ifdef CONFIG_SUN3_SCSI
+#if IS_ENABLED(CONFIG_SUN3_SCSI)
 
 static const struct resource sun3_scsi_vme_rsrc[] __initconst = {
 	{

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] m68k/atari, m68k/sun3: Fix SCSI platform device registration when driver is modular
  2015-12-18  1:44 [PATCH] m68k/atari, m68k/sun3: Fix SCSI platform device registration when driver is modular Finn Thain
@ 2016-01-10 13:00 ` Geert Uytterhoeven
  2016-01-11  0:13   ` Greg Ungerer
  0 siblings, 1 reply; 3+ messages in thread
From: Geert Uytterhoeven @ 2016-01-10 13:00 UTC (permalink / raw)
  To: Finn Thain; +Cc: Michael Schmitz, Linux/m68k, Greg Ungerer

Hi Finn,

On Fri, Dec 18, 2015 at 2:44 AM, Finn Thain <fthain@telegraphics.com.au> wrote:
> 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>

Thanks, applied and queued for v4.5.

> Index: linux/arch/m68k/atari/config.c
> ===================================================================
> --- linux.orig/arch/m68k/atari/config.c 2015-12-18 12:06:53.000000000 +1100
> +++ linux/arch/m68k/atari/config.c      2015-12-18 12:07:00.000000000 +1100
> @@ -858,7 +858,7 @@ static struct platform_device *atari_net
>  };
>  #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: linux/arch/m68k/sun3/config.c
> ===================================================================
> --- linux.orig/arch/m68k/sun3/config.c  2015-12-18 12:06:53.000000000 +1100
> +++ linux/arch/m68k/sun3/config.c       2015-12-18 12:07:00.000000000 +1100
> @@ -171,7 +171,7 @@ static void __init sun3_sched_init(irq_h
>          intersil_clear();
>  }
>
> -#ifdef CONFIG_SUN3_SCSI
> +#if IS_ENABLED(CONFIG_SUN3_SCSI)
>
>  static const struct resource sun3_scsi_vme_rsrc[] __initconst = {
>         {

Greg: There's a similar issue on Coldfire with CONFIG_FEC.

We also have an #ifdef for tristate BLK_DEV_FD, but as that one depends on
broken, we don't care ;-)

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] m68k/atari, m68k/sun3: Fix SCSI platform device registration when driver is modular
  2016-01-10 13:00 ` Geert Uytterhoeven
@ 2016-01-11  0:13   ` Greg Ungerer
  0 siblings, 0 replies; 3+ messages in thread
From: Greg Ungerer @ 2016-01-11  0:13 UTC (permalink / raw)
  To: Geert Uytterhoeven, Finn Thain; +Cc: Michael Schmitz, Linux/m68k

Hi Geert,

On 10/01/16 23:00, Geert Uytterhoeven wrote:
> Hi Finn,
> 
> On Fri, Dec 18, 2015 at 2:44 AM, Finn Thain <fthain@telegraphics.com.au> wrote:
>> 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>
> 
> Thanks, applied and queued for v4.5.
> 
>> Index: linux/arch/m68k/atari/config.c
>> ===================================================================
>> --- linux.orig/arch/m68k/atari/config.c 2015-12-18 12:06:53.000000000 +1100
>> +++ linux/arch/m68k/atari/config.c      2015-12-18 12:07:00.000000000 +1100
>> @@ -858,7 +858,7 @@ static struct platform_device *atari_net
>>  };
>>  #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: linux/arch/m68k/sun3/config.c
>> ===================================================================
>> --- linux.orig/arch/m68k/sun3/config.c  2015-12-18 12:06:53.000000000 +1100
>> +++ linux/arch/m68k/sun3/config.c       2015-12-18 12:07:00.000000000 +1100
>> @@ -171,7 +171,7 @@ static void __init sun3_sched_init(irq_h
>>          intersil_clear();
>>  }
>>
>> -#ifdef CONFIG_SUN3_SCSI
>> +#if IS_ENABLED(CONFIG_SUN3_SCSI)
>>
>>  static const struct resource sun3_scsi_vme_rsrc[] __initconst = {
>>         {
> 
> Greg: There's a similar issue on Coldfire with CONFIG_FEC.

Thanks, I'll fix and postr a patch here.

Regards
Greg



> We also have an #ifdef for tristate BLK_DEV_FD, but as that one depends on
> broken, we don't care ;-)
> 
> Gr{oetje,eeting}s,
> 
>                         Geert
> 
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
> 
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
>                                 -- Linus Torvalds
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-11  0:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-18  1:44 [PATCH] m68k/atari, m68k/sun3: Fix SCSI platform device registration when driver is modular Finn Thain
2016-01-10 13:00 ` Geert Uytterhoeven
2016-01-11  0:13   ` Greg Ungerer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox