All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH resend^2] ARM: nspire: Remove unneeded nspire_map_io()
@ 2018-03-02 13:38 Geert Uytterhoeven
  2018-03-02 13:49 ` Vladimir Murzin
  0 siblings, 1 reply; 3+ messages in thread
From: Geert Uytterhoeven @ 2018-03-02 13:38 UTC (permalink / raw)
  To: linux-arm-kernel

nspire_map_io() just calls debug_ll_io_init().

If machine_desc.map_io is not set, devicemaps_init() in the
common ARM code will call debug_ll_io_init(), so nspire_map_io() and the
initialization of .map_io can be removed.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm/mach-nspire/nspire.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/arch/arm/mach-nspire/nspire.c b/arch/arm/mach-nspire/nspire.c
index f0808fcc5accad2e..8584cdd1c827687e 100644
--- a/arch/arm/mach-nspire/nspire.c
+++ b/arch/arm/mach-nspire/nspire.c
@@ -33,11 +33,6 @@ static const char *const nspire_dt_match[] __initconst = {
 	NULL,
 };
 
-static void __init nspire_map_io(void)
-{
-	debug_ll_io_init();
-}
-
 static struct clcd_board nspire_clcd_data = {
 	.name		= "LCD",
 	.caps		= CLCD_CAP_5551 | CLCD_CAP_565,
@@ -71,7 +66,6 @@ static void nspire_restart(enum reboot_mode mode, const char *cmd)
 
 DT_MACHINE_START(NSPIRE, "TI-NSPIRE")
 	.dt_compat	= nspire_dt_match,
-	.map_io		= nspire_map_io,
 	.init_machine	= nspire_init,
 	.restart	= nspire_restart,
 MACHINE_END
-- 
2.7.4

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

* [PATCH resend^2] ARM: nspire: Remove unneeded nspire_map_io()
  2018-03-02 13:38 [PATCH resend^2] ARM: nspire: Remove unneeded nspire_map_io() Geert Uytterhoeven
@ 2018-03-02 13:49 ` Vladimir Murzin
  2018-03-07 15:08   ` Arnd Bergmann
  0 siblings, 1 reply; 3+ messages in thread
From: Vladimir Murzin @ 2018-03-02 13:49 UTC (permalink / raw)
  To: linux-arm-kernel

On 02/03/18 13:38, Geert Uytterhoeven wrote:
> nspire_map_io() just calls debug_ll_io_init().
> 
> If machine_desc.map_io is not set, devicemaps_init() in the
> common ARM code will call debug_ll_io_init(), so nspire_map_io() and the
> initialization of .map_io can be removed.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

I came to the similar conclusion some time ago with

d7da1ccfa2c2 "ARM: i.MX: remove map_io callback"

so, FWIW:

Reviewed-by: Vladimir Murzin <vladimir.murzin@arm.com>

Cheers
Vladimir

> ---
>  arch/arm/mach-nspire/nspire.c | 6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/arch/arm/mach-nspire/nspire.c b/arch/arm/mach-nspire/nspire.c
> index f0808fcc5accad2e..8584cdd1c827687e 100644
> --- a/arch/arm/mach-nspire/nspire.c
> +++ b/arch/arm/mach-nspire/nspire.c
> @@ -33,11 +33,6 @@ static const char *const nspire_dt_match[] __initconst = {
>  	NULL,
>  };
>  
> -static void __init nspire_map_io(void)
> -{
> -	debug_ll_io_init();
> -}
> -
>  static struct clcd_board nspire_clcd_data = {
>  	.name		= "LCD",
>  	.caps		= CLCD_CAP_5551 | CLCD_CAP_565,
> @@ -71,7 +66,6 @@ static void nspire_restart(enum reboot_mode mode, const char *cmd)
>  
>  DT_MACHINE_START(NSPIRE, "TI-NSPIRE")
>  	.dt_compat	= nspire_dt_match,
> -	.map_io		= nspire_map_io,
>  	.init_machine	= nspire_init,
>  	.restart	= nspire_restart,
>  MACHINE_END
> 

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

* [PATCH resend^2] ARM: nspire: Remove unneeded nspire_map_io()
  2018-03-02 13:49 ` Vladimir Murzin
@ 2018-03-07 15:08   ` Arnd Bergmann
  0 siblings, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2018-03-07 15:08 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, Mar 2, 2018 at 2:49 PM, Vladimir Murzin <vladimir.murzin@arm.com> wrote:
> On 02/03/18 13:38, Geert Uytterhoeven wrote:
>> nspire_map_io() just calls debug_ll_io_init().
>>
>> If machine_desc.map_io is not set, devicemaps_init() in the
>> common ARM code will call debug_ll_io_init(), so nspire_map_io() and the
>> initialization of .map_io can be removed.
>>
>> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Reviewed-by: Vladimir Murzin <vladimir.murzin@arm.com>

Applied to next/soc, thanks!

       Arnd

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

end of thread, other threads:[~2018-03-07 15:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-02 13:38 [PATCH resend^2] ARM: nspire: Remove unneeded nspire_map_io() Geert Uytterhoeven
2018-03-02 13:49 ` Vladimir Murzin
2018-03-07 15:08   ` Arnd Bergmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.