[PATCH 3/7 v2] can: xilinx: Fix platform_get_irq's error checking

2017-12-04 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- changes in v2: commit message was not correct. drivers/net/can/xilinx_can.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/n

[PATCH 3/7 v2] can: xilinx: Fix platform_get_irq's error checking

2017-12-04 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- changes in v2: commit message was not correct. drivers/net/can/xilinx_can.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/can/xilinx_can.c b/drivers/net/can

[PATCH 4/7 v2] net: ethernet: i825xx: Fix platform_get_irq's error checking

2017-12-04 Thread Arvind Yadav
The platform_get_irq() function returns negative number if an error occurs, Zero if No irq is found and positive number if irq gets successful. platform_get_irq() error checking only for zero is not correct. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- changes

[PATCH 4/7 v2] net: ethernet: i825xx: Fix platform_get_irq's error checking

2017-12-04 Thread Arvind Yadav
The platform_get_irq() function returns negative number if an error occurs, Zero if No irq is found and positive number if irq gets successful. platform_get_irq() error checking only for zero is not correct. Signed-off-by: Arvind Yadav --- changes in v2: commit message

[PATCH 2/7 v2] net: ezchip: nps_enet: Fix platform_get_irq's error checking

2017-12-04 Thread Arvind Yadav
The platform_get_irq() function returns negative number if an error occurs, Zero if No irq is found and positive number if irq gets successful. platform_get_irq() error checking only for zero is not correct. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- changes

[PATCH 2/7 v2] net: ezchip: nps_enet: Fix platform_get_irq's error checking

2017-12-04 Thread Arvind Yadav
The platform_get_irq() function returns negative number if an error occurs, Zero if No irq is found and positive number if irq gets successful. platform_get_irq() error checking only for zero is not correct. Signed-off-by: Arvind Yadav --- changes in v2: commit message

[PATCH 6/7 v2] net: ethernet: smsc: Fix platform_get_irq's error checking

2017-12-04 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- changes in v2: commit message was not correct. drivers/net/ethernet/smsc/smc911x.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drive

[PATCH 6/7 v2] net: ethernet: smsc: Fix platform_get_irq's error checking

2017-12-04 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- changes in v2: commit message was not correct. drivers/net/ethernet/smsc/smc911x.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/ethernet/smsc/smc911x.c b

[PATCH 7/7 v2] net: fjes: Fix platform_get_irq's error checking

2017-12-04 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- changes in v2: commit message was not correct. drivers/net/fjes/fjes_main.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/ne

[PATCH 7/7 v2] net: fjes: Fix platform_get_irq's error checking

2017-12-04 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- changes in v2: commit message was not correct. drivers/net/fjes/fjes_main.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/fjes/fjes_main.c b/drivers/net/fjes

[PATCH 5/7 v2] net: ethernet: natsemi: Fix platform_get_irq's error checking

2017-12-04 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- changes in v2: commit message was not correct. drivers/net/ethernet/natsemi/jazzsonic.c | 5 + 1 file changed, 5 insertions(+) diff --git a/d

[PATCH 5/7 v2] net: ethernet: natsemi: Fix platform_get_irq's error checking

2017-12-04 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- changes in v2: commit message was not correct. drivers/net/ethernet/natsemi/jazzsonic.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/ethernet/natsemi

[PATCH 1/7 v2] net: bcmgenet: Fix platform_get_irq's error checking

2017-12-04 Thread Arvind Yadav
The platform_get_irq() function returns negative number if an error occurs, Zero if No irq is found and positive number if irq gets successful. platform_get_irq() error checking only for zero is not correct. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- changes

[PATCH 1/7 v2] net: bcmgenet: Fix platform_get_irq's error checking

2017-12-04 Thread Arvind Yadav
The platform_get_irq() function returns negative number if an error occurs, Zero if No irq is found and positive number if irq gets successful. platform_get_irq() error checking only for zero is not correct. Signed-off-by: Arvind Yadav --- changes in v2: commit message

[PATCH 0/7 v2] net: Fix platform_get_irq's error checking

2017-12-04 Thread Arvind Yadav
The platform_get_irq() function returns negative number if an error occurs, Zero if No irq is found and positive number if irq gets successful. platform_get_irq() error checking for only zero is not correct. Removed Other 3 patch which is not related to this series. Arvind Yadav (7): [PATCH 1

[PATCH 0/7 v2] net: Fix platform_get_irq's error checking

2017-12-04 Thread Arvind Yadav
The platform_get_irq() function returns negative number if an error occurs, Zero if No irq is found and positive number if irq gets successful. platform_get_irq() error checking for only zero is not correct. Removed Other 3 patch which is not related to this series. Arvind Yadav (7): [PATCH 1

[PATCH 01/10] net: bcmgenet: Fix platform_get_irq's error checking

2017-12-02 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/net/ethernet/broadcom/genet/bcmgenet.c | 2 +- 1 file chan

[PATCH 01/10] net: bcmgenet: Fix platform_get_irq's error checking

2017-12-02 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav --- drivers/net/ethernet/broadcom/genet/bcmgenet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 05/10] net: ethernet: i825xx: Fix platform_get_irq's error checking

2017-12-02 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/net/ethernet/i825xx/sni_82596.c | 3 ++- 1 file chan

[PATCH 05/10] net: ethernet: i825xx: Fix platform_get_irq's error checking

2017-12-02 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav --- drivers/net/ethernet/i825xx/sni_82596.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[PATCH 03/10] net: ezchip: nps_enet: Fix platform_get_irq's error checking

2017-12-02 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. And remove unnecessary check for free_netdev(). Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/net/et

[PATCH 03/10] net: ezchip: nps_enet: Fix platform_get_irq's error checking

2017-12-02 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. And remove unnecessary check for free_netdev(). Signed-off-by: Arvind Yadav --- drivers/net/ethernet/ezchip/nps_enet.c | 7

[PATCH 08/10] net: fjes: Handle return value of platform_get_irq and platform_get_resource

2017-12-02 Thread Arvind Yadav
platform_get_irq() and platform_get_resource() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/net/fjes/fjes_main.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/net/fjes/fjes_main.c b/drive

[PATCH 08/10] net: fjes: Handle return value of platform_get_irq and platform_get_resource

2017-12-02 Thread Arvind Yadav
platform_get_irq() and platform_get_resource() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/net/fjes/fjes_main.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/net/fjes/fjes_main.c b/drivers/net/fjes/fjes_main.c index 750954b

[PATCH 10/10] net: ethernet: cpmac: Handle return value of platform_get_irq_byname

2017-12-02 Thread Arvind Yadav
platform_get_irq_byname() can fail here and we must check its return value Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/net/ethernet/ti/cpmac.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/ti/cpmac.c b/drivers/net/ethernet/ti/cpmac.c

[PATCH 10/10] net: ethernet: cpmac: Handle return value of platform_get_irq_byname

2017-12-02 Thread Arvind Yadav
platform_get_irq_byname() can fail here and we must check its return value Signed-off-by: Arvind Yadav --- drivers/net/ethernet/ti/cpmac.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/ti/cpmac.c b/drivers/net/ethernet/ti/cpmac.c index 9b8a30b..f3acfc0 100644

[PATCH 07/10] net: ethernet: smsc: Handle return value of platform_get_irq

2017-12-02 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/net/ethernet/smsc/smc911x.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/ethernet/smsc/smc911x.c b/drivers/net/ethernet/smsc/smc

[PATCH 09/10] net: ethernet: korina: Handle return value of platform_get_irq_byname

2017-12-02 Thread Arvind Yadav
platform_get_irq_byname() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/net/ethernet/korina.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/net/ethernet/korina.c b/drivers/net/ethernet/korina.c

[PATCH 07/10] net: ethernet: smsc: Handle return value of platform_get_irq

2017-12-02 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/net/ethernet/smsc/smc911x.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/ethernet/smsc/smc911x.c b/drivers/net/ethernet/smsc/smc911x.c index 0515744..a1cf18c

[PATCH 09/10] net: ethernet: korina: Handle return value of platform_get_irq_byname

2017-12-02 Thread Arvind Yadav
platform_get_irq_byname() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/net/ethernet/korina.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/net/ethernet/korina.c b/drivers/net/ethernet/korina.c index ae195f8..e778504 100644

[PATCH 06/10] net: ethernet: natsemi: Handle return value of platform_get_irq

2017-12-02 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/net/ethernet/natsemi/jazzsonic.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/ethernet/natsemi/jazzsonic.c b/drivers/net/et

[PATCH 06/10] net: ethernet: natsemi: Handle return value of platform_get_irq

2017-12-02 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/net/ethernet/natsemi/jazzsonic.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/ethernet/natsemi/jazzsonic.c b/drivers/net/ethernet/natsemi/jazzsonic.c index

[PATCH 02/10] net: bcmgenet: free netdev on of_match_node() error

2017-12-02 Thread Arvind Yadav
The change is to call free_netdev(), If of_match_node() will fail. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/net/ethernet/broadcom/genet/bcmgenet.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/broadcom/genet/bcmg

[PATCH 04/10] can: xilinx: Handle return value of platform_get_irq

2017-12-02 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/net/can/xilinx_can.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/can/xilinx_can.c b/drivers/net/can/xilinx_can.c index 89aec07..e

[PATCH 00/10] Handle return value of platform_get_*

2017-12-02 Thread Arvind Yadav
() Arvind Yadav (10): [PATCH 01/10] net: bcmgenet: Fix platform_get_irq's error checking [PATCH 02/10] net: bcmgenet: free netdev on of_match_node() error [PATCH 03/10] net: ezchip: nps_enet: Fix platform_get_irq's error checking [PATCH 04/10] can: xilinx: Handle return value

[PATCH 02/10] net: bcmgenet: free netdev on of_match_node() error

2017-12-02 Thread Arvind Yadav
The change is to call free_netdev(), If of_match_node() will fail. Signed-off-by: Arvind Yadav --- drivers/net/ethernet/broadcom/genet/bcmgenet.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c b/drivers/net/ethernet

[PATCH 04/10] can: xilinx: Handle return value of platform_get_irq

2017-12-02 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/net/can/xilinx_can.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/can/xilinx_can.c b/drivers/net/can/xilinx_can.c index 89aec07..e36e2a2 100644 --- a/drivers/net

[PATCH 00/10] Handle return value of platform_get_*

2017-12-02 Thread Arvind Yadav
() Arvind Yadav (10): [PATCH 01/10] net: bcmgenet: Fix platform_get_irq's error checking [PATCH 02/10] net: bcmgenet: free netdev on of_match_node() error [PATCH 03/10] net: ezchip: nps_enet: Fix platform_get_irq's error checking [PATCH 04/10] can: xilinx: Handle return value

[PATCH v2] gpio: ftgpio010: Fix platform_get_irq's error checking

2017-12-02 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- changes in v2: It's should be 'irq <= 0' instead of

[PATCH v2] gpio: ftgpio010: Fix platform_get_irq's error checking

2017-12-02 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav --- changes in v2: It's should be 'irq <= 0' instead of 'irq < 0'. drivers/gpi

[PATCH 3/3] staging: irda: Remove unnecessary 'err' initialization.

2017-11-30 Thread Arvind Yadav
Here, variable 'err' is already initialised. So no need to reinitialize. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/staging/irda/drivers/pxaficp_ir.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/irda/drivers/pxaficp_ir.c b/drivers/stagin

[PATCH 3/3] staging: irda: Remove unnecessary 'err' initialization.

2017-11-30 Thread Arvind Yadav
Here, variable 'err' is already initialised. So no need to reinitialize. Signed-off-by: Arvind Yadav --- drivers/staging/irda/drivers/pxaficp_ir.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/irda/drivers/pxaficp_ir.c b/drivers/staging/irda/drivers/pxaficp_ir.c index

[PATCH 0/3] Handle return value of platform_get_irq

2017-11-30 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Remove unnecessary 'err' initialization for irda driver. Arvind Yadav (3): [PATCH 1/3] iio: trigger: Fix platform_get_irq's error

[PATCH 1/3] iio: trigger: Fix platform_get_irq's error checking

2017-11-30 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/staging/iio/trigger/iio-trig-bfin-timer.c | 4 ++--

[PATCH 0/3] Handle return value of platform_get_irq

2017-11-30 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Remove unnecessary 'err' initialization for irda driver. Arvind Yadav (3): [PATCH 1/3] iio: trigger: Fix platform_get_irq's error

[PATCH 1/3] iio: trigger: Fix platform_get_irq's error checking

2017-11-30 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav --- drivers/staging/iio/trigger/iio-trig-bfin-timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 2/3] staging: irda: Handle return value of platform_get_irq

2017-11-30 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/staging/irda/drivers/pxaficp_ir.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/staging/irda/drivers/pxaficp_ir.c b/drivers/s

[PATCH 2/3] staging: irda: Handle return value of platform_get_irq

2017-11-30 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/staging/irda/drivers/pxaficp_ir.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/staging/irda/drivers/pxaficp_ir.c b/drivers/staging/irda/drivers/pxaficp_ir.c

[PATCH] gpio: ftgpio010: Fix platform_get_irq's error checking

2017-11-30 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/gpio/gpio-ftgpio010.c | 4 ++-- 1 file changed, 2 inse

[PATCH] gpio: ftgpio010: Fix platform_get_irq's error checking

2017-11-30 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav --- drivers/gpio/gpio-ftgpio010.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 3/5 v5] ASoC: nuc900: Fix platform_get_irq's error checking

2017-11-29 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- changes in v2 : irq was unsigned. so using signed va

[PATCH 3/5 v5] ASoC: nuc900: Fix platform_get_irq's error checking

2017-11-29 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav --- changes in v2 : irq was unsigned. so using signed variable ret. changes in v3

[PATCH 5/5 v4] ASoC: intel: mfld: Handle return value of platform_get_irq

2017-11-29 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- changes in v2 : Add failure case '<= 0' instead of '< 0'. IRQ0 is not valid. changes in v3 : Return -ENODEV insted of irq. c

[PATCH 5/5 v4] ASoC: intel: mfld: Handle return value of platform_get_irq

2017-11-29 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- changes in v2 : Add failure case '<= 0' instead of '< 0'. IRQ0 is not valid. changes in v3 : Return -ENODEV insted of irq. changes in v4 : Add se

[PATCH 4/5 v4] ASoC: intel: sst: Handle return value of platform_get_irq

2017-11-29 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- changes in v2 : Add failure case '<= 0' instead of '< 0'. IRQ0 is not valid. changes in v3 : Return -EIO insted of ctx->i

[PATCH 4/5 v4] ASoC: intel: sst: Handle return value of platform_get_irq

2017-11-29 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- changes in v2 : Add failure case '<= 0' instead of '< 0'. IRQ0 is not valid. changes in v3 : Return -EIO insted of ctx->irq_num. changes in v4 :

[PATCH 2/5 v5] ASoC: mt8173: Fix platform_get_irq's error checking

2017-11-29 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- changes in v2 : irq was unsigned. so changed it to

[PATCH 2/5 v5] ASoC: mt8173: Fix platform_get_irq's error checking

2017-11-29 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav --- changes in v2 : irq was unsigned. so changed it to signed. changes in v3

[PATCH 1/5 v5] ASoC: ep93xx-ac97: Fix platform_get_irq's error checking

2017-11-29 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- changes in v2 : irq was unsigned. so changed it to

[PATCH 1/5 v5] ASoC: ep93xx-ac97: Fix platform_get_irq's error checking

2017-11-29 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav --- changes in v2 : irq was unsigned. so changed it to signed. changes in v3

[PATCH 1/2 v2] misc: enclosure: Fix space before '[' error

2017-11-29 Thread Arvind Yadav
Fix checkpatch.pl error: ERROR: space prohibited before open square bracket '['. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- changes in v2: subject was incorrect. subsystem/driver was wrong. drivers/misc/enclosure.c | 4 ++-- 1 file changed, 2 insertions

[PATCH 1/2 v2] misc: enclosure: Fix space before '[' error

2017-11-29 Thread Arvind Yadav
Fix checkpatch.pl error: ERROR: space prohibited before open square bracket '['. Signed-off-by: Arvind Yadav --- changes in v2: subject was incorrect. subsystem/driver was wrong. drivers/misc/enclosure.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 2/2 v2] misc: enclosure: Remove unnecessary error check

2017-11-29 Thread Arvind Yadav
It is not necessary to check return value of class_register. enclosure_init returns both successful and error value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- changes in v2: subject was incorrect. subsystem/driver was wrong. drivers/misc/enclosure

[PATCH 2/2 v2] misc: enclosure: Remove unnecessary error check

2017-11-29 Thread Arvind Yadav
It is not necessary to check return value of class_register. enclosure_init returns both successful and error value. Signed-off-by: Arvind Yadav --- changes in v2: subject was incorrect. subsystem/driver was wrong. drivers/misc/enclosure.c | 8 +--- 1 file changed, 1 insertion

[PATCH v2] ACPI / PMIC: constify platform_device_id

2017-11-28 Thread Arvind Yadav
platform_device_id are not supposed to change at runtime. All functions working with platform_device_id provided by work with const platform_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- changes in v2: Rese

[PATCH v2] ACPI / PMIC: constify platform_device_id

2017-11-28 Thread Arvind Yadav
platform_device_id are not supposed to change at runtime. All functions working with platform_device_id provided by work with const platform_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- changes in v2: Resend all changes as single patch

Re: [PATCH 0/2] ACPI / PMIC: constify platform_device_id

2017-11-28 Thread Arvind Yadav
Hi Rafael, On Wednesday 29 November 2017 02:28 AM, Rafael J. Wysocki wrote: On Tue, Nov 28, 2017 at 11:01 AM, Arvind Yadav <arvind.yadav...@gmail.com> wrote: platform_device_id are not supposed to change at runtime. All functions working with platform_device_id provided by work with

Re: [PATCH 0/2] ACPI / PMIC: constify platform_device_id

2017-11-28 Thread Arvind Yadav
Hi Rafael, On Wednesday 29 November 2017 02:28 AM, Rafael J. Wysocki wrote: On Tue, Nov 28, 2017 at 11:01 AM, Arvind Yadav wrote: platform_device_id are not supposed to change at runtime. All functions working with platform_device_id provided by work with const platform_device_id. So mark

[PATCH] i2c-cht-wc: constify platform_device_id

2017-11-28 Thread Arvind Yadav
platform_device_id are not supposed to change at runtime. All functions working with platform_device_id provided by work with const platform_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/i2c/busses/i2c-cht-wc.c | 2

[PATCH] i2c-cht-wc: constify platform_device_id

2017-11-28 Thread Arvind Yadav
platform_device_id are not supposed to change at runtime. All functions working with platform_device_id provided by work with const platform_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/i2c/busses/i2c-cht-wc.c | 2 +- 1 file changed, 1 insertion

[PATCH 2/2] ACPI / PMIC: Constify platform_device_id

2017-11-28 Thread Arvind Yadav
platform_device_id are not supposed to change at runtime. All functions working with platform_device_id provided by work with const platform_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/acpi/pmic/intel_pmic_bxtwc

[PATCH 2/2] ACPI / PMIC: Constify platform_device_id

2017-11-28 Thread Arvind Yadav
platform_device_id are not supposed to change at runtime. All functions working with platform_device_id provided by work with const platform_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/acpi/pmic/intel_pmic_bxtwc.c | 2 +- 1 file changed, 1

[PATCH 0/2] ACPI / PMIC: constify platform_device_id

2017-11-28 Thread Arvind Yadav
platform_device_id are not supposed to change at runtime. All functions working with platform_device_id provided by work with const platform_device_id. So mark the non-const structs as const. Arvind Yadav (2): [PATCH 1/2] ACPI / PMIC: constify platform_device_id [PATCH 2/2] ACPI / PMIC

[PATCH 1/2] ACPI / PMIC: constify platform_device_id

2017-11-28 Thread Arvind Yadav
platform_device_id are not supposed to change at runtime. All functions working with platform_device_id provided by work with const platform_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/acpi/pmic/intel_pmic_chtwc

[PATCH 0/2] ACPI / PMIC: constify platform_device_id

2017-11-28 Thread Arvind Yadav
platform_device_id are not supposed to change at runtime. All functions working with platform_device_id provided by work with const platform_device_id. So mark the non-const structs as const. Arvind Yadav (2): [PATCH 1/2] ACPI / PMIC: constify platform_device_id [PATCH 2/2] ACPI / PMIC

[PATCH 1/2] ACPI / PMIC: constify platform_device_id

2017-11-28 Thread Arvind Yadav
platform_device_id are not supposed to change at runtime. All functions working with platform_device_id provided by work with const platform_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/acpi/pmic/intel_pmic_chtwc.c | 2 +- 1 file changed, 1

Re: [PATCH] mmc: usdhi6rol0: Handle return value of platform_get_irq_byname for card detect

2017-11-27 Thread Arvind Yadav
Hi, On Monday 27 November 2017 03:01 PM, Ulf Hansson wrote: On 17 November 2017 at 17:35, Arvind Yadav <arvind.yadav...@gmail.com> wrote: platform_get_irq_byname() can fail here and we must check its return value. NAK. You need to check the code more carefully. irq_cd is dealt with

Re: [PATCH] mmc: usdhi6rol0: Handle return value of platform_get_irq_byname for card detect

2017-11-27 Thread Arvind Yadav
Hi, On Monday 27 November 2017 03:01 PM, Ulf Hansson wrote: On 17 November 2017 at 17:35, Arvind Yadav wrote: platform_get_irq_byname() can fail here and we must check its return value. NAK. You need to check the code more carefully. irq_cd is dealt with later below in the same function

[PATCH] pata_pdc2027x : make pdc2027x_*_timing structures const

2017-11-25 Thread Arvind Yadav
Make these pdc2027x_*_timing structures const as it is never modified. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/ata/pata_pdc2027x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/ata/pata_pdc2027x.c b/drivers/ata/pata_pdc2027x.c

[PATCH] pata_pdc2027x : make pdc2027x_*_timing structures const

2017-11-25 Thread Arvind Yadav
Make these pdc2027x_*_timing structures const as it is never modified. Signed-off-by: Arvind Yadav --- drivers/ata/pata_pdc2027x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/ata/pata_pdc2027x.c b/drivers/ata/pata_pdc2027x.c index d1e8b63..141bf81 100644

[PATCH] pata_pdc2027x: Fix coding sytle error

2017-11-25 Thread Arvind Yadav
board_idx? PDC_133_MHZ:PDC_100_MHZ; ERROR: that open brace { should be on the previous line + const struct ata_port_info *ppi[] = + { _port_info[board_idx], NULL }; Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- changes in v1: These cheange was a part of '[PATC

[PATCH] pata_pdc2027x: Fix coding sytle error

2017-11-25 Thread Arvind Yadav
board_idx? PDC_133_MHZ:PDC_100_MHZ; ERROR: that open brace { should be on the previous line + const struct ata_port_info *ppi[] = + { _port_info[board_idx], NULL }; Signed-off-by: Arvind Yadav --- changes in v1: These cheange was a part of '[PATCH] pata_pdc2027x:

[PATCH v3] pata_pdc2027x: Remove unnecessary error check

2017-11-25 Thread Arvind Yadav
Here, The function pdc_hardware_init always return zero. So it is not necessary to check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- changes in v2 : Make function return type 'void' instead of 'int. Add sapce between ':'. c

[PATCH v3] pata_pdc2027x: Remove unnecessary error check

2017-11-25 Thread Arvind Yadav
Here, The function pdc_hardware_init always return zero. So it is not necessary to check its return value. Signed-off-by: Arvind Yadav --- changes in v2 : Make function return type 'void' instead of 'int. Add sapce between ':'. changes in v3 : Fix

[PATCH 1/4] staging: ccree: Remove a attribute group from a kobject

2017-11-24 Thread Arvind Yadav
All attribute group created during sys_init_dir() should be removed in sys_free_dir() Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/staging/ccree/ssi_sysfs.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/staging/ccree/ssi_sysfs.c b/d

[PATCH 1/4] staging: ccree: Remove a attribute group from a kobject

2017-11-24 Thread Arvind Yadav
All attribute group created during sys_init_dir() should be removed in sys_free_dir() Signed-off-by: Arvind Yadav --- drivers/staging/ccree/ssi_sysfs.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/staging/ccree/ssi_sysfs.c b/drivers/staging/ccree/ssi_sysfs.c

[PATCH 2/4] staging: lustre: ldlm: Remove a attribute group from a kobject

2017-11-24 Thread Arvind Yadav
All attribute group created during ldlm_setup() should be removed in ldlm_cleanup(). Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/lustre/

[PATCH 2/4] staging: lustre: ldlm: Remove a attribute group from a kobject

2017-11-24 Thread Arvind Yadav
All attribute group created during ldlm_setup() should be removed in ldlm_cleanup(). Signed-off-by: Arvind Yadav --- drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c b/drivers

[PATCH 4/4] staging: most: Remove a attribute group from a kobject

2017-11-24 Thread Arvind Yadav
All attribute group created during dim2_sysfs_probe() should be removed in dim2_sysfs_destroy(). Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/staging/most/hdm-dim2/dim2_sysfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/most/hdm-dim2/dim2_s

[PATCH 4/4] staging: most: Remove a attribute group from a kobject

2017-11-24 Thread Arvind Yadav
All attribute group created during dim2_sysfs_probe() should be removed in dim2_sysfs_destroy(). Signed-off-by: Arvind Yadav --- drivers/staging/most/hdm-dim2/dim2_sysfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/most/hdm-dim2/dim2_sysfs.c b/drivers/staging/most/hdm

[PATCH 0/4] Remove a attribute group from a kobject

2017-11-24 Thread Arvind Yadav
Arvind Yadav (4): [PATCH 1/4] staging: ccree: Remove a attribute group from a kobject [PATCH 2/4] staging: lustre: ldlm: Remove a attribute group from a kobject [PATCH 3/4] staging: lustre: obdclass: Remove a attribute group from a kobject [PATCH 4/4] staging: most: Remove a attribute

[PATCH 3/4] staging: lustre: obdclass: Remove a attribute group from a kobject

2017-11-24 Thread Arvind Yadav
All attribute group created during class_procfs_init() should be removed. if class_procfs_init() will fail and also in class_procfs_clean(). Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/staging/lustre/lustre/obdclass/linux/linux-module.c | 3 +++ 1 file chan

[PATCH 0/4] Remove a attribute group from a kobject

2017-11-24 Thread Arvind Yadav
Arvind Yadav (4): [PATCH 1/4] staging: ccree: Remove a attribute group from a kobject [PATCH 2/4] staging: lustre: ldlm: Remove a attribute group from a kobject [PATCH 3/4] staging: lustre: obdclass: Remove a attribute group from a kobject [PATCH 4/4] staging: most: Remove a attribute

[PATCH 3/4] staging: lustre: obdclass: Remove a attribute group from a kobject

2017-11-24 Thread Arvind Yadav
All attribute group created during class_procfs_init() should be removed. if class_procfs_init() will fail and also in class_procfs_clean(). Signed-off-by: Arvind Yadav --- drivers/staging/lustre/lustre/obdclass/linux/linux-module.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers

[PATCH v2] pata_pdc2027x: Remove unnecessary error check and coding style error.

2017-11-24 Thread Arvind Yadav
OR: spaces required around that '?' (ctx:VxW) + long pout_required = board_idx? PDC_133_MHZ:PDC_100_MHZ; ERROR: that open brace { should be on the previous line + const struct ata_port_info *ppi[] = + { _port_info[board_idx], NULL }; Signed-off-by: Arvind Yadav <arvind.yadav

[PATCH v2] pata_pdc2027x: Remove unnecessary error check and coding style error.

2017-11-24 Thread Arvind Yadav
OR: spaces required around that '?' (ctx:VxW) + long pout_required = board_idx? PDC_133_MHZ:PDC_100_MHZ; ERROR: that open brace { should be on the previous line + const struct ata_port_info *ppi[] = + { _port_info[board_idx], NULL }; Signed-off-by: Arvind Yadav --- cha

[PATCH] pata_pdc2027x: Remove unnecessary error check and coding style error.

2017-11-24 Thread Arvind Yadav
' (ctx:VxW) + long pout_required = board_idx? PDC_133_MHZ:PDC_100_MHZ; ERROR: that open brace { should be on the previous line + const struct ata_port_info *ppi[] = + { _port_info[board_idx], NULL }; Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/ata

[PATCH] pata_pdc2027x: Remove unnecessary error check and coding style error.

2017-11-24 Thread Arvind Yadav
' (ctx:VxW) + long pout_required = board_idx? PDC_133_MHZ:PDC_100_MHZ; ERROR: that open brace { should be on the previous line + const struct ata_port_info *ppi[] = + { _port_info[board_idx], NULL }; Signed-off-by: Arvind Yadav --- drivers/ata/pata_pdc2027x.c | 14 ++-

[PATCH] power: supply: cpcap-battery: Fix platform_get_irq_byname's error checking

2017-11-24 Thread Arvind Yadav
The platform_get_irq_byname() function returns -1 if an error occurs. zero or positive number on success. platform_get_irq_byname() error checking for zero is not correct. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/power/supply/cpcap-battery.c | 4 ++-- 1 file chan

[PATCH] power: supply: cpcap-battery: Fix platform_get_irq_byname's error checking

2017-11-24 Thread Arvind Yadav
The platform_get_irq_byname() function returns -1 if an error occurs. zero or positive number on success. platform_get_irq_byname() error checking for zero is not correct. Signed-off-by: Arvind Yadav --- drivers/power/supply/cpcap-battery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

<    1   2   3   4   5   6   7   8   9   10   >