[PATCH 2/2] at91: use request_irq/free_irq instead of setup_irq/remove_irq

2015-07-03 Thread David Dueck
/0x3c0) [] (start_kernel) from [<20008070>] (0x20008070) ---[ end trace 0001 ]--- Signed-off-by: David Dueck --- drivers/clocksource/timer-atmel-pit.c | 76 ++- 1 file changed, 40 insertions(+), 36 deletions(-) diff --git a/drivers/clocksource

[PATCH RFC 1/2] at91: make using irqs for clock handling optional

2015-07-03 Thread David Dueck
-by: David Dueck --- drivers/clk/Kconfig | 1 + drivers/clk/at91/Kconfig | 4 drivers/clk/at91/clk-main.c | 34 ++ drivers/clk/at91/clk-master.c | 11 +++ drivers/clk/at91/clk-pll.c| 11 ++- drivers/clk/at91/clk-system.c

[PATCH RFC 0/2] RT-Preempt on SAMA5

2015-07-03 Thread David Dueck
some problem if we just do not use interrupts here anymore? (at least for the clocks that are needed very early) The patches are on top of the RT patches for 4.0. The second patch might not be needed if we just drop the RT patch that touches the PIT code. David Dueck (2): at91: make using irqs

[PATCH] pinctrl: at91: fix null pointer dereference

2015-07-02 Thread David Dueck
[] (ret_fast_syscall+0x0/0x3c) [ 51.14] Code: eb010ec2 e30a0d08 e34c005a eb0ae5a7 (e5993000) [ 51.15] ---[ end trace fb3c370da3ea4794 ]--- Signed-off-by: David Dueck CC: Nicolas Ferre CC: Alexandre Belloni CC: Ludovic Desroches CC: Boris Brezillon CC: linux-arm-ker...@lists.infradead.org CC: linux

[PATCHv2] clk: at91: do not leak resources

2015-06-26 Thread David Dueck
Do not leak memory and free irqs in case of an error. Acked-by: Boris Brezillon Signed-off-by: David Dueck --- Changes since v1: - squash into one commit drivers/clk/at91/clk-h32mx.c | 4 +++- drivers/clk/at91/clk-main.c | 4 +++- drivers/clk/at91/clk-master.c | 8 ++-- drivers/clk

[PATCH 2/6] clk: at91: clk-main: fix memory leak

2015-06-26 Thread David Dueck
Do not leak memory if request_irq fails. Signed-off-by: David Dueck --- drivers/clk/at91/clk-main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/at91/clk-main.c b/drivers/clk/at91/clk-main.c index 59fa3cc..696719e 100644 --- a/drivers/clk/at91/clk-main.c

[PATCH 6/6] clk: at91: clk-utmi: fix error path

2015-06-26 Thread David Dueck
Do not leak memory if request_irq fails and free the irq if clk_register fails. Signed-off-by: David Dueck --- drivers/clk/at91/clk-utmi.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/clk/at91/clk-utmi.c b/drivers/clk/at91/clk-utmi.c index ae3263b..30dd697

[PATCH 1/6] clk: at91: clk-h32mxclk: fix memory leak

2015-06-26 Thread David Dueck
Do not leak memory if clk_register fails. Signed-off-by: David Dueck --- drivers/clk/at91/clk-h32mx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/at91/clk-h32mx.c b/drivers/clk/at91/clk-h32mx.c index 152dcb3..61566bc 100644 --- a/drivers/clk/at91/clk

[PATCH 5/6] clk: at91: clk-system: fix error path

2015-06-26 Thread David Dueck
Do not leak memory if request_irq fails and free the irq if clk_register fails. Signed-off-by: David Dueck --- drivers/clk/at91/clk-system.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/clk/at91/clk-system.c b/drivers/clk/at91/clk-system.c index a76d03f

[PATCH 4/6] clk: at91: clk-pll: fix error path

2015-06-26 Thread David Dueck
Do not leak memory if request_irq fails and free the irq if clk_register fails. Signed-off-by: David Dueck --- drivers/clk/at91/clk-pll.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/clk/at91/clk-pll.c b/drivers/clk/at91/clk-pll.c index cbbe403..18b60f4

[PATCH 3/6] clk: at91: clk-master: fix error path

2015-06-26 Thread David Dueck
Do not leak memory if request_irq fails and free the irq if clk_register fails. Signed-off-by: David Dueck --- drivers/clk/at91/clk-master.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/clk/at91/clk-master.c b/drivers/clk/at91/clk-master.c index c1af80b

[PATCH] rtc: at91rm9200: Fix locking in interrupt handler

2015-03-15 Thread David Dueck
Signed-off-by: David Dueck --- drivers/rtc/rtc-at91rm9200.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-at91rm9200.c b/drivers/rtc/rtc-at91rm9200.c index b4f7744..b283a1a 100644 --- a/drivers/rtc/rtc-at91rm9200.c +++ b/drivers/rtc/rtc-at91rm9200.c

[PATCH] usb: phy: am335x-control: check return value of bus_find_device

2015-02-08 Thread David Dueck
This fixes a potential null pointer dereference. Signed-off-by: David Dueck --- drivers/usb/phy/phy-am335x-control.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/phy/phy-am335x-control.c b/drivers/usb/phy/phy-am335x-control.c index 403fab7..7b3035f 100644 --- a/drivers