[PATCH] ARM: OMAPFB: panel-sony-acx565akm: fix missing unlock in acx565akm_panel_power_on()

2013-12-06 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Add the missing unlock before return from function acx565akm_panel_power_on() in the error handling case. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/video/omap2/displays-new/panel-sony-acx565akm.c | 9 +++-- 1 file

[PATCH] ARM: OMAP3: Beagle: fix return value check in beagle_opp_init()

2013-10-29 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the function get_cpu_device() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- arch/arm/mach-omap2

[PATCH] ARM: OMAP2+: smsc911x: fix return value check in gpmc_smsc911x_init()

2013-10-25 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the function platform_device_register_resndata() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn

[PATCH -next] usb: phy: omap: remove redundant dev_err call in omap_control_usb_probe()

2013-10-12 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/usb/phy/phy-omap-control.c | 4 +--- 1 file changed, 1

[PATCH] ARM: OMAP: dma: fix error return code in omap_system_dma_probe()

2013-07-16 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- arch/arm/plat-omap/dma.c | 1 + 1 file changed, 1 insertion(+) diff

[PATCH RESEND] PM / AVS: SmartReflex: remove redundant dev_err call in omap_sr_probe()

2013-07-11 Thread Wei Yongjun
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn Acked-by: Nishanth Menon n...@ti.com --- cc to linux-pm with Nishanth Menon's ACK --- drivers/power/avs

[PATCH] ARM: OMAP: fix return value check in omap_device_build_from_dt()

2013-07-04 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the function omap_device_alloc() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- arch/arm/mach-omap2

[PATCH -next] ARM: OMAP1: remove duplicated include from board-voiceblue.c

2013-06-19 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Remove duplicated include. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- arch/arm/mach-omap1/board-voiceblue.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-omap1/board-voiceblue.c b/arch/arm/mach-omap1/board

[PATCH -next] ARM: OMAP2+: devices: remove duplicated include from devices.c

2013-06-19 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Remove duplicated include. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- arch/arm/mach-omap2/devices.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index c0f99ab

[PATCH] mmc: omap: fix error return code in mmc_omap_probe()

2013-05-27 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix to return -ENOMEM in the workqueue alloc error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/mmc/host/omap.c | 4 +++- 1 file changed, 3 insertions(+), 1

[PATCH] ARM: OMAP: fix error return code in omap1_system_dma_init()

2013-05-12 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix to return -ENOMEM in the d-chan alloc error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- arch/arm/mach-omap1/dma.c | 1 + 1 file changed, 1 insertion(+) diff

[PATCH] mmc: omap_hsmmc: fix error return code in omap_hsmmc_probe()

2013-05-08 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix to return a negative error code in the init error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/mmc/host/omap_hsmmc.c | 3 ++- 1 file changed, 2 insertions

[PATCH] usb: musb: omap2430: add missing platform_device_put() on error in omap2430_probe()

2013-04-26 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Add the missing platform_device_put() before return from omap2430_probe() in the error handling case. Introduced by commit ca784be36cc725bca9b526eba342de7550329731 (usb: start using the control module driver) Signed-off-by: Wei Yongjun yongjun_

[PATCH] ARM: OMAP1: DMA: fix error handling in omap1_system_dma_init()

2013-04-26 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Add the missing iounmap() before return from omap1_system_dma_init() in the error handling case. Also removed platform_device_del() on add resources error case which cause dup device delete. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn

[PATCH -next] ARM: OMAP2+: remove duplicated include from board-overo.c

2012-11-07 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Remove duplicated include. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- arch/arm/mach-omap2/board-overo.c | 1 - 1 file changed, 1 deletion

[PATCH] OMAPDSS: HDMI: fix missing unlock on error in hdmi_dump_regs()

2012-10-21 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Add the missing unlock on the error handling path in function hdmi_dump_regs(). Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- no test --- drivers/video/omap2/dss/hdmi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff

[PATCH] ARM: OMAP2+: remove duplicated include from board-omap3stalker.c

2012-10-07 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Remove duplicated include. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- arch/arm/mach-omap2/board-omap3stalker.c | 5 - 1 file changed, 5

[PATCH] ARM: OMAP: fix return value check in realtime_counter_init()

2012-10-07 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the function clk_get() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch

[PATCH] usb: otg: isp1301_omap: fix potential NULL pointer dereference

2012-10-07 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn The dereference should be moved below the NULL test. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/usb/otg/isp1301_omap.c | 32

[PATCH] ARM: OMAP2+: SmartReflex: fix return value check in sr_dev_init()

2012-09-26 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the function voltdm_lookup() returns NULL not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed

[PATCH] ARM: OMAP2+: PM: fix return value check in omap2_set_init_voltage()

2012-09-26 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the function voltdm_lookup() returns NULL not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed

[PATCH] ARM: OMAP: fix return value check in beagle_opp_init()

2012-09-21 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the function omap_device_get_by_hwmod_name() returns ERR_PTR() not NULL pointer. The NULL test in the return value check should be replaced with IS_ERR(). dpatch engine is used to auto generated this patch. (https://github.com

[PATCH] OMAPDSS: fix return value check in create_dss_pdev()

2012-09-21 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the function omap_device_alloc() returns ERR_PTR() not NULL pointer. The NULL test in the return value check should be replaced with IS_ERR(). dpatch engine is used to auto generated this patch. (https://github.com/weiyj/dpatch

[PATCH] ARM: OMAP: hsmmc: fix return value check in omap_hsmmc_init_one()

2012-09-21 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the function omap_device_alloc() returns ERR_PTR() not NULL pointer. The NULL test in the return value check should be replaced with IS_ERR(). dpatch engine is used to auto generated this patch. (https://github.com/weiyj/dpatch

[PATCH] ARM: OMAP: omap_device: fix return value check in omap_device_build_ss()

2012-09-21 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the function omap_device_alloc() returns ERR_PTR() and never returns NULL pointer. The NULL test in the return value check should be replaced with IS_ERR(). dpatch engine is used to auto generated this patch. (https://github.com

[PATCH] gpio/omap: fix possible memory leak in omap2_gpio_dev_init()

2012-09-03 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn pdata and pdata-regs have been allocated in this function and should be freed before leaving it, and in the other error handling cases too. spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off

Re: [PATCH] gpio/omap: fix possible memory leak in omap2_gpio_dev_init()

2012-09-03 Thread Wei Yongjun
On 09/03/2012 07:11 PM, Russell King - ARM Linux wrote: On Mon, Sep 03, 2012 at 06:13:33PM +0800, Wei Yongjun wrote: @@ -130,6 +132,7 @@ static int __init omap2_gpio_dev_init(struct omap_hwmod *oh, void *unused) pdev = omap_device_build(name, id - 1, oh, pdata

[PATCH v2] gpio/omap: fix possible memory leak in omap2_gpio_dev_init()

2012-09-03 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn pdata and pdata-regs have been allocated in this function and should be freed before leaving it, and in the other error handling cases too. spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off