[PATCH v3] net: ethernet: arc: fix error handling in emac_rockchip_probe

2017-12-11 Thread Branislav Radocaj
handling of clock rate setting * For completeness of usecase, added arc_emac_probe error handling Signed-off-by: Branislav Radocaj <branis...@radocaj.org> --- [1] https://marc.info/?l=linux-netdev=151301239802445=2 --- drivers/net/ethernet/arc/emac_rockchip.c | 10 +++--- 1 file chan

[PATCH v3] net: ethernet: arc: fix error handling in emac_rockchip_probe

2017-12-11 Thread Branislav Radocaj
handling of clock rate setting * For completeness of usecase, added arc_emac_probe error handling Signed-off-by: Branislav Radocaj --- [1] https://marc.info/?l=linux-netdev=151301239802445=2 --- drivers/net/ethernet/arc/emac_rockchip.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions

[PATCH v2] net: ethernet: arc: fix error handling in emac_rockchip_probe

2017-12-09 Thread Branislav Radocaj
If clk_set_rate() fails, we should disable clk before return. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Branislav Radocaj <branis...@radocaj.org> --- Changes since v2: * Improved inconsistent failure handling of clock rate setting * For completeness of u

[PATCH v2] net: ethernet: arc: fix error handling in emac_rockchip_probe

2017-12-09 Thread Branislav Radocaj
If clk_set_rate() fails, we should disable clk before return. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Branislav Radocaj --- Changes since v2: * Improved inconsistent failure handling of clock rate setting * For completeness of usecase, added arc_emac_probe

[PATCH] tty: serial: mxs-auart: fix error handling in mxs_auart_probe

2017-12-07 Thread Branislav Radocaj
If uart_add_one_port() fails in mxs_auart_probe, the clks has to be disabled.Two clks are previously enabled in mxs_get_clks(). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Branislav Radocaj <branis...@radocaj.org> --- drivers/tty/serial/mxs-auart

[PATCH] tty: serial: mxs-auart: fix error handling in mxs_auart_probe

2017-12-07 Thread Branislav Radocaj
If uart_add_one_port() fails in mxs_auart_probe, the clks has to be disabled.Two clks are previously enabled in mxs_get_clks(). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Branislav Radocaj --- drivers/tty/serial/mxs-auart.c | 8 ++-- 1 file changed, 6

[PATCH] net: ethernet: arc: fix error handling in emac_rockchip_probe

2017-12-06 Thread Branislav Radocaj
If clk_set_rate() fails, we should disable clk before return. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Branislav Radocaj <branis...@radocaj.org> --- drivers/net/ethernet/arc/emac_rockchip.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-)

[PATCH] net: ethernet: arc: fix error handling in emac_rockchip_probe

2017-12-06 Thread Branislav Radocaj
If clk_set_rate() fails, we should disable clk before return. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Branislav Radocaj --- drivers/net/ethernet/arc/emac_rockchip.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net

[PATCH] net: ethernet: arc: fix error handling in emac_rockchip_probe

2017-12-06 Thread Branislav Radocaj
If clk_set_rate() fails, we should disable clk before return. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Branislav Radocaj <branis...@radocaj.org> --- drivers/net/ethernet/arc/emac_rockchip.c | 7 +-- 1 file changed, 5 insertions

[PATCH] net: ethernet: arc: fix error handling in emac_rockchip_probe

2017-12-06 Thread Branislav Radocaj
If clk_set_rate() fails, we should disable clk before return. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Branislav Radocaj --- drivers/net/ethernet/arc/emac_rockchip.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

[PATCH v2] Staging: bcm2048 fix bare use of 'unsigned' in radio-bcm2048.c

2017-10-10 Thread Branislav Radocaj
This is a patch to the radio-bcm2048.c file that fixes up a warning found by the checkpatch.pl tool. Signed-off-by: Branislav Radocaj <branis...@radocaj.org> --- [1]: https://marc.info/?l=linux-driver-devel=150331308401055=2 Changes in v2: Removed unused 'size' argument from propert

[PATCH v2] Staging: bcm2048 fix bare use of 'unsigned' in radio-bcm2048.c

2017-10-10 Thread Branislav Radocaj
This is a patch to the radio-bcm2048.c file that fixes up a warning found by the checkpatch.pl tool. Signed-off-by: Branislav Radocaj --- [1]: https://marc.info/?l=linux-driver-devel=150331308401055=2 Changes in v2: Removed unused 'size' argument from property_read macro. In property_write

[PATCH] Staging: atomisp: fix alloc_cast.cocci warnings

2017-09-07 Thread Branislav Radocaj
, kmem_cache_alloc_node, kmalloc_node and kzalloc_node and removes the casting as it is not required. The result in the patch case may need some reformatting. Generated by: scripts/coccinelle/api/alloc/alloc_cast.cocci Signed-off-by: Branislav Radocaj <branis...@radocaj.org> --- drivers/staging

[PATCH] Staging: atomisp: fix alloc_cast.cocci warnings

2017-09-07 Thread Branislav Radocaj
, kmem_cache_alloc_node, kmalloc_node and kzalloc_node and removes the casting as it is not required. The result in the patch case may need some reformatting. Generated by: scripts/coccinelle/api/alloc/alloc_cast.cocci Signed-off-by: Branislav Radocaj --- drivers/staging/media/atomisp/pci/atomisp2

[PATCH] Staging: bcm2048 fix bare use of 'unsigned' in radio-bcm2048.c

2017-08-28 Thread Branislav Radocaj
places of its usage as well. Signed-off-by: Branislav Radocaj <branis...@radocaj.org> --- drivers/staging/media/bcm2048/radio-bcm2048.c | 60 +-- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/drivers/staging/media/bcm2048/radio-bcm2048.c b/drivers/s

[PATCH] Staging: bcm2048 fix bare use of 'unsigned' in radio-bcm2048.c

2017-08-28 Thread Branislav Radocaj
places of its usage as well. Signed-off-by: Branislav Radocaj --- drivers/staging/media/bcm2048/radio-bcm2048.c | 60 +-- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/drivers/staging/media/bcm2048/radio-bcm2048.c b/drivers/staging/media/bcm2048/radio

[PATCH] Staging: bcm2048: fix bare use of 'unsigned' in radio-bcm2048.c

2017-08-04 Thread Branislav Radocaj
This is a patch to the radio-bcm2048.c file that fixes up a warning found by the checkpatch.pl tool. Signed-off-by: Branislav Radocaj <branis...@radocaj.org> --- drivers/staging/media/bcm2048/radio-bcm2048.c | 50 +-- 1 file changed, 25 insertions(+), 25 del

[PATCH] Staging: bcm2048: fix bare use of 'unsigned' in radio-bcm2048.c

2017-08-04 Thread Branislav Radocaj
This is a patch to the radio-bcm2048.c file that fixes up a warning found by the checkpatch.pl tool. Signed-off-by: Branislav Radocaj --- drivers/staging/media/bcm2048/radio-bcm2048.c | 50 +-- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/drivers

[PATCH] Staging: bcm2048: fix bare use of 'unsigned' in radio-bcm2048.c

2017-08-03 Thread Branislav Radocaj
This is a patch to the radio-bcm2048.c file that fixes up a warning found by the checkpatch.pl tool. Signed-off-by: Branislav Radocaj <branis...@radocaj.org> --- drivers/staging/media/bcm2048/radio-bcm2048.c | 44 +-- 1 file changed, 22 insertions(+), 22 del

[PATCH] Staging: bcm2048: fix bare use of 'unsigned' in radio-bcm2048.c

2017-08-03 Thread Branislav Radocaj
This is a patch to the radio-bcm2048.c file that fixes up a warning found by the checkpatch.pl tool. Signed-off-by: Branislav Radocaj --- drivers/staging/media/bcm2048/radio-bcm2048.c | 44 +-- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/drivers