ARM: OMAP: Overo: remove illegal extra call to overo_ads7846_init()
Subsystems (3)
PATCH 1/1 ARM: OMAP: Overo: remove illegal extra call to overo_ads7846_init()
--- arch/arm/mach-omap2/board-overo.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/board-overo.c +0 -1
@@ -568,7 +568,6 @@ static void __init overo_init(void)usb_musb_init (NULL );usbhs_init (&usbhs_bdata);overo_spi_init (); -overo_ads7846_init ();overo_init_smsc911x ();overo_display_init ();overo_init_led ();
Signature · 1 line
1.7.5.1
PATCH 1/1 ARM: OMAP: Overo: remove illegal extra call to overo_ads7846_init()
Quoted 1 line · Daniel Mack
Signed-off-by Daniel Mack <[email protected]>
Thanks for fixing this, I noticed this recently too.
Please add a descriptive changelog. For example, why is it duplcate? where is it already done? what commit added the extra call, what problems does it cause, etc.
Also, your subject says 'illegal', but it's not really illegal. It's just
wrong. :) "remove duplcate call to..." is enough.
Thanks,
Kevin
Quoted 16 lines
--- arch/arm/mach-omap2/board-overo.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)arch/arm/mach-omap2/board-overo.c +0
-1@@ -568,7 +568,6 @@ static void __init overo_init(void)usb_musb_init (NULL );usbhs_init (&usbhs_bdata);overo_spi_init (); -overo_ads7846_init ();overo_init_smsc911x ();overo_display_init ();overo_init_led ();
PATCH 1/1 ARM: OMAP: Overo: remove duplicate call to overo_ads7846_init()
overo_ads7846_init() is already called from overo_spi_init(), and calling it twice is not only unnecessary but causes a warning as "reg-fixed-voltage.1" is already added to the device tree.
--- arch/arm/mach-omap2/board-overo.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/board-overo.c +0 -1
@@ -568,7 +568,6 @@ static void __init overo_init(void)usb_musb_init (NULL );usbhs_init (&usbhs_bdata);overo_spi_init (); -overo_ads7846_init ();overo_init_smsc911x ();overo_display_init ();overo_init_led ();
Signature · 1 line
1.7.5.1
PATCH 1/1 ARM: OMAP: Overo: remove duplicate call to overo_ads7846_init()
Quoted 3 lines · Daniel Mack
overo_ads7846_init()is already called fromovero_spi_init(), and calling it twice is not only unnecessary but causes a warning as "reg-fixed-voltage.1" is already added to the device tree.
Excellent, thanks!
Quoted 1 line
Signed-off-by Daniel Mack <[email protected]>
Tony Lindgren
maintainerPATCH 1/1 ARM: OMAP: Overo: remove duplicate call to overo_ads7846_init()
Quoted 6 lines · Kevin Hilman
Quoted 3 lines · Daniel Mack
overo_ads7846_init()is already called fromovero_spi_init(), and calling it twice is not only unnecessary but causes a warning as "reg-fixed-voltage.1" is already added to the device tree.
Quoted 6 lines
Excellent, thanks!
Quoted 1 line
Signed-off-by Daniel Mack <[email protected]>Tested-by Kevin Hilman <[email protected]>
Applying into devel-fixes.
Tony