linux/drivers/watchdog
Julia Lawall bd5cc119ef watchdog: s3c2410_wdt: simplify use of devm_ioremap_resource
Remove unneeded error handling on the result of a call to
platform_get_resource when the value is passed to devm_ioremap_resource.

Move the call to platform_get_resource adjacent to the call to
devm_ioremap_resource to make the connection between them more clear.

A simplified version of the semantic patch that makes this change is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression pdev,res,n,e,e1;
expression ret != 0;
identifier l;
@@

- res = platform_get_resource(pdev, IORESOURCE_MEM, n);
  ... when != res
- if (res == NULL) { ... \(goto l;\|return ret;\) }
  ... when != res
+ res = platform_get_resource(pdev, IORESOURCE_MEM, n);
  e = devm_ioremap_resource(e1, res);
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
2013-09-10 21:21:26 +02:00
..
acquirewdt.c watchdog: remove use of __devexit 2012-11-28 12:00:24 -08:00
advantechwdt.c watchdog: remove use of __devexit 2012-11-28 12:00:24 -08:00
alim1535_wdt.c watchdog: nowayout is bool 2012-03-27 20:06:02 +02:00
alim7101_wdt.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
ar7_wdt.c watchdog: simplify platform_get_resource_byname/devm_ioremap_resource 2013-09-10 21:20:44 +02:00
at32ap700x_wdt.c watchdog: at32ap700x: Remove redundant platform_set_drvdata() 2013-07-11 20:52:42 +02:00
at91rm9200_wdt.c watchdog: at91rm9200: add DT support 2013-03-01 12:55:27 +01:00
at91sam9_wdt.c watchdog: add timeout-sec property binding 2013-03-01 12:53:45 +01:00
at91sam9_wdt.h ARM: at91: make watchdog drivers soc independent 2011-11-28 22:50:39 +08:00
ath79_wdt.c drivers/watchdog: don't check resource with devm_ioremap_resource 2013-05-18 11:58:04 +02:00
bcm47xx_wdt.c watchdog: bcm47xx_wdt.c: add hard timer 2013-03-01 12:47:31 +01:00
bcm63xx_wdt.c watchdog: bcm63xx_wdt: use devm_ioremap_nocache() 2013-07-11 20:53:44 +02:00
bcm2835_wdt.c watchdog: Add Broadcom BCM2835 watchdog timer driver 2013-07-11 22:17:30 +02:00
bfin_wdt.c watchdog: remove use of __devexit 2012-11-28 12:00:24 -08:00
booke_wdt.c powerpc/watchdog: Don't enable interrupt on PPC64 BookE 2013-06-25 18:14:45 -05:00
coh901327_wdt.c watchdog: coh901327: devicetree support 2013-05-31 11:25:52 +02:00
cpu5wdt.c watchdog: cpu5wdt.c: add missing del_timer call 2012-12-19 22:24:41 +01:00
cpwd.c watchdog: cpwd: use platform_{get,set}_drvdata() 2013-07-11 21:07:24 +02:00
da9052_wdt.c watchdog: da9052: use platform_{get,set}_drvdata() 2013-07-11 21:08:01 +02:00
da9055_wdt.c watchdog: da9055: use platform_{get,set}_drvdata() 2013-07-11 21:08:27 +02:00
davinci_wdt.c drivers/watchdog: don't check resource with devm_ioremap_resource 2013-05-18 11:58:04 +02:00
dw_wdt.c watchdog: dw_wdt: Staticize local symbol 2013-07-11 21:00:24 +02:00
ep93xx_wdt.c watchdog: remove use of __devexit 2012-11-28 12:00:24 -08:00
eurotechwdt.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
f71808e_wdt.c watchdog: f71808e_wdt: Add support for Jetway JNF99 motherboard 2012-07-23 12:46:38 +02:00
gef_wdt.c watchdog: gef_wdt.c: add missing remove callback 2013-03-01 12:18:33 +01:00
geodewdt.c watchdog: remove use of __devexit 2012-11-28 12:00:24 -08:00
hpwdt.c watchdog: hpwdt: Add check for UEFI bits 2013-07-11 22:20:06 +02:00
i6300esb.c watchdog: remove use of __devexit 2012-11-28 12:00:24 -08:00
ib700wdt.c watchdog: remove use of __devexit 2012-11-28 12:00:24 -08:00
ibmasr.c watchdog: nowayout is bool 2012-03-27 20:06:02 +02:00
ie6xx_wdt.c watchdog: remove use of __devexit 2012-11-28 12:00:24 -08:00
imx2_wdt.c watchdog: imx2_wdt: use devm_clk_get() 2013-07-11 21:01:06 +02:00
indydog.c watchdog: nowayout is bool 2012-03-27 20:06:02 +02:00
intel_scu_watchdog.c watchdog: Use pr_<fmt> and pr_<level> 2012-03-27 19:59:26 +02:00
intel_scu_watchdog.h watchdog: Use pr_<fmt> and pr_<level> 2012-03-27 19:59:26 +02:00
iop_wdt.c watchdog: nowayout is bool 2012-03-27 20:06:02 +02:00
it87_wdt.c watchdog: it87_wdt: Add support for IT8728F watchdog. 2012-05-23 16:24:43 +02:00
it8712f_wdt.c watchdog: nowayout is bool 2012-03-27 20:06:02 +02:00
iTCO_vendor_support.c watchdog: Convert iTCO_wdt driver to mfd model 2012-05-09 17:20:09 +02:00
iTCO_vendor.h watchdog: Convert iTCO_wdt driver to mfd model 2012-05-09 17:20:09 +02:00
iTCO_wdt.c watchdog: remove use of __devexit 2012-11-28 12:00:24 -08:00
ixp4xx_wdt.c watchdog: nowayout is bool 2012-03-27 20:06:02 +02:00
jz4740_wdt.c watchdog: jz4740: Pass device to clk_get 2013-07-11 21:12:31 +02:00
Kconfig watchdog: sunxi: New watchdog driver for Allwinner A10/A13 2013-09-10 21:14:44 +02:00
kempld_wdt.c watchdog: Kontron PLD watchdog timer driver 2013-06-30 23:30:06 +02:00
ks8695_wdt.c watchdog: remove use of __devexit 2012-11-28 12:00:24 -08:00
lantiq_wdt.c watchdog: Convert to devm_ioremap_resource() 2013-01-25 12:21:48 -08:00
m54xx_wdt.c m68knommu: clean up ColdFire 54xx General Timer definitions 2012-09-27 23:34:03 +10:00
machzwd.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
Makefile watchdog: sunxi: New watchdog driver for Allwinner A10/A13 2013-09-10 21:14:44 +02:00
max63xx_wdt.c watchdog: Convert to devm_ioremap_resource() 2013-01-25 12:21:48 -08:00
mena21_wdt.c watchdog: New watchdog driver for MEN A21 watchdogs 2013-07-11 22:19:05 +02:00
mixcomwd.c watchdog: remove use of __devinitdata 2012-11-28 12:00:24 -08:00
mpc8xxx_wdt.c watchdog: remove use of __devexit 2012-11-28 12:00:24 -08:00
mtx-1_wdt.c watchdog: mtx1-wdt: use devm_gpio_request_one() 2013-07-11 21:04:05 +02:00
mv64x60_wdt.c watchdog: mv64x60_wdt: use devm_ioremap() 2013-07-11 20:54:21 +02:00
nuc900_wdt.c watchdog: nuc900_wdt.c: simplify use of devm_ioremap_resource 2013-09-10 21:15:02 +02:00
nv_tco.c watchdog: remove use of __devexit 2012-11-28 12:00:24 -08:00
nv_tco.h
octeon-wdt-main.c watchdog: nowayout is bool 2012-03-27 20:06:02 +02:00
octeon-wdt-nmi.S
of_xilinx_wdt.c watchdog: xilinx: Setup the origin compatible string 2013-07-11 21:47:22 +02:00
omap_wdt.c watchdog: omap_wdt: Add option nowayout 2013-03-01 12:49:02 +01:00
omap_wdt.h
orion_wdt.c Watchdog: fix clearing of the watchdog interrupt 2013-07-11 22:18:30 +02:00
pc87413_wdt.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
pcwd_pci.c watchdog: remove use of __devexit 2012-11-28 12:00:24 -08:00
pcwd_usb.c watchdog: nowayout is bool 2012-03-27 20:06:02 +02:00
pcwd.c watchdog: remove use of __devexit 2012-11-28 12:00:24 -08:00
pika_wdt.c watchdog: nowayout is bool 2012-03-27 20:06:02 +02:00
pnx833x_wdt.c watchdog: nowayout is bool 2012-03-27 20:06:02 +02:00
pnx4008_wdt.c watchdog: pnx4008_wdt: use devm_clk_get() 2013-07-11 21:01:53 +02:00
rc32434_wdt.c watchdog: rc32434_wdt: use devm_ioremap_nocache() functions 2013-07-11 20:55:28 +02:00
rdc321x_wdt.c watchdog: remove use of __devexit 2012-11-28 12:00:24 -08:00
retu_wdt.c watchdog: introduce retu_wdt driver 2013-03-01 12:31:14 +01:00
riowd.c watchdog: riowd: use platform_{get,set}_drvdata() 2013-07-11 20:57:25 +02:00
s3c2410_wdt.c watchdog: s3c2410_wdt: simplify use of devm_ioremap_resource 2013-09-10 21:21:26 +02:00
sa1100_wdt.c ARM: sa11x0/pxa: convert OS timer registers to IOMEM 2012-07-09 17:37:35 +01:00
sb_wdog.c WATCHDOG: sb_wdog: Fix 32 bit build failure 2013-06-21 18:07:03 +02:00
sbc60xxwdt.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
sbc7240_wdt.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
sbc8360.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
sbc_epx_c3.c watchdog: nowayout is bool 2012-03-27 20:06:02 +02:00
sbc_fitpc2_wdt.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
sc520_wdt.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
sc1200wdt.c watchdog: nowayout is bool 2012-03-27 20:06:02 +02:00
sch311x_wdt.c watchdog: remove use of __devexit 2012-11-28 12:00:24 -08:00
scx200_wdt.c watchdog: nowayout is bool 2012-03-27 20:06:02 +02:00
shwdt.c watchdog: shwdt: Remove redundant platform_set_drvdata() 2013-07-11 21:03:04 +02:00
smsc37b787_wdt.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
softdog.c watchdog: softdog: remove replaceable ping operation 2013-07-11 22:19:30 +02:00
sp805_wdt.c watchdog: sp805_wdt: use devm_clk_get() 2013-07-11 21:03:30 +02:00
sp5100_tco.c watchdog: sp5100_tco: Remove code that may cause a boot failure 2013-03-22 23:21:47 +01:00
sp5100_tco.h watchdog: sp5100_tco: Set the AcpiMmioSel bitmask value to 1 instead of 2 2013-03-22 23:21:55 +01:00
stmp3xxx_rtc_wdt.c watchdog: add new driver for STMP3xxx and i.MX23/28 2013-03-01 12:44:34 +01:00
sunxi_wdt.c watchdog: sunxi: New watchdog driver for Allwinner A10/A13 2013-09-10 21:14:44 +02:00
ts72xx_wdt.c watchdog: ts72xx_wdt: simplify use of devm_ioremap_resource 2013-09-10 21:15:32 +02:00
twl4030_wdt.c watchdog: twl4030: Remove redundant platform_set_drvdata() 2013-07-11 21:10:13 +02:00
txx9wdt.c watchdog: Convert to devm_ioremap_resource() 2013-01-25 12:21:48 -08:00
ux500_wdt.c watchdog: Add support for ux500_wdt watchdog 2013-02-14 00:22:53 +01:00
via_wdt.c watchdog: remove use of __devexit 2012-11-28 12:00:24 -08:00
w83627hf_wdt.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
w83697hf_wdt.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
w83697ug_wdt.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
w83877f_wdt.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
w83977f_wdt.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
wafer5823wdt.c watchdog: nowayout is bool 2012-03-27 20:06:02 +02:00
watchdog_core.c watchdog: core: dt: add support for the timeout-sec dt property 2013-03-01 12:48:36 +01:00
watchdog_core.h watchdog: Add multiple device support 2012-05-30 07:54:25 +02:00
watchdog_dev.c watchdog: core: don't try to stop device if not running 2013-07-11 21:14:39 +02:00
wd501p.h
wdrtas.c watchdog: wdrtas: don't use custom version of print_hex_dump 2013-07-11 21:26:31 +02:00
wdt285.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
wdt977.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
wdt_pci.c watchdog: remove use of __devexit 2012-11-28 12:00:24 -08:00
wdt.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
wm831x_wdt.c watchdog: wm831x: use platform_{get,set}_drvdata() 2013-07-11 21:05:38 +02:00
wm8350_wdt.c watchdog: remove use of __devexit 2012-11-28 12:00:24 -08:00
xen_wdt.c watchdog: remove use of __devexit 2012-11-28 12:00:24 -08:00