linux/drivers/watchdog
Guenter Roeck 8862c1f2b0 watchdog: pnx4008_wdt: Convert to use device managed functions and other improvements
Use device managed functions to simplify error handling, reduce
source code size, improve readability, and reduce the likelyhood of bugs.
Other improvements as listed below.

The conversion was done automatically with coccinelle using the
following semantic patches. The semantic patches and the scripts
used to generate this commit log are available at
https://github.com/groeck/coccinelle-patches

- Drop empty remove function
- Use devm_add_action_or_reset() for calls to clk_disable_unprepare
- Introduce local variable 'struct device *dev' and use it instead of
  dereferencing it repeatedly
- Use devm_watchdog_register_driver() to register watchdog device

Cc: Vladimir Zapolskiy <vz@mleia.com>
Cc: Sylvain Lemieux <slemieux.tyco@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
2019-05-05 21:02:37 +02:00
..
acquirewdt.c
advantechwdt.c
alim1535_wdt.c
alim7101_wdt.c
ar7_wdt.c
armada_37xx_wdt.c
asm9260_wdt.c
aspeed_wdt.c
at91rm9200_wdt.c
at91sam9_wdt.c
at91sam9_wdt.h
ath79_wdt.c
atlas7_wdt.c
bcm47xx_wdt.c
bcm63xx_wdt.c
bcm2835_wdt.c
bcm7038_wdt.c
bcm_kona_wdt.c
bd70528_wdt.c
booke_wdt.c
cadence_wdt.c
coh901327_wdt.c
cpu5wdt.c
cpwd.c
da9052_wdt.c
da9055_wdt.c
da9062_wdt.c
da9063_wdt.c
davinci_wdt.c
diag288_wdt.c
digicolor_wdt.c
dw_wdt.c
ebc-c384_wdt.c
ep93xx_wdt.c
eurotechwdt.c
f71808e_wdt.c
ftwdt010_wdt.c
gef_wdt.c
geodewdt.c
gpio_wdt.c
hpwdt.c
i6300esb.c
ib700wdt.c
ibmasr.c
ie6xx_wdt.c
imgpdc_wdt.c
imx2_wdt.c
imx_sc_wdt.c watchdog: imx_sc_wdt: Use 'dev' instead of dereferencing it repeatedly 2019-05-05 21:02:34 +02:00
indydog.c
intel_scu_watchdog.c
intel_scu_watchdog.h
intel-mid_wdt.c
iop_wdt.c
it87_wdt.c
it8712f_wdt.c
iTCO_vendor_support.c
iTCO_vendor.h
iTCO_wdt.c
ixp4xx_wdt.c
jz4740_wdt.c watchdog: jz4740_wdt: Use 'dev' instead of dereferencing it repeatedly 2019-05-05 21:02:37 +02:00
Kconfig
kempld_wdt.c
ks8695_wdt.c
lantiq_wdt.c
loongson1_wdt.c watchdog: loongson1_wdt: Convert to use device managed functions and other improvements 2019-05-05 21:02:36 +02:00
lpc18xx_wdt.c
m54xx_wdt.c
machzwd.c
Makefile
max63xx_wdt.c
max77620_wdt.c
mei_wdt.c
mena21_wdt.c
menf21bmc_wdt.c
menz69_wdt.c
meson_gxbb_wdt.c
meson_wdt.c
mixcomwd.c
mlx_wdt.c
moxart_wdt.c
mpc8xxx_wdt.c watchdog: mpc8xxx_wdt: Convert to use device managed functions and other improvements 2019-05-05 21:02:37 +02:00
mt7621_wdt.c watchdog: mt7621_wdt: Use 'dev' instead of dereferencing it repeatedly 2019-05-05 21:02:36 +02:00
mtk_wdt.c
mtx-1_wdt.c
mv64x60_wdt.c
ni903x_wdt.c
nic7018_wdt.c
npcm_wdt.c watchdog: npcm_wdt: Use local variable 'dev' consistently 2019-05-05 21:02:25 +02:00
nuc900_wdt.c
nv_tco.c
nv_tco.h
octeon-wdt-main.c
octeon-wdt-nmi.S
of_xilinx_wdt.c watchdog: of_xilinx_wdt: Convert to use device managed functions and other improvements 2019-05-05 21:02:25 +02:00
omap_wdt.c
omap_wdt.h
orion_wdt.c
pc87413_wdt.c
pcwd_pci.c
pcwd_usb.c
pcwd.c
pic32-dmt.c watchdog: pic32-dmt: Convert to use device managed functions and other improvements 2019-05-05 21:02:35 +02:00
pic32-wdt.c watchdog: pic32-wdt: Convert to use device managed functions and other improvements 2019-05-05 21:02:36 +02:00
pika_wdt.c
pm8916_wdt.c watchdog: pm8916_wdt: Use 'dev' instead of dereferencing it repeatedly 2019-05-05 21:02:26 +02:00
pnx833x_wdt.c
pnx4008_wdt.c watchdog: pnx4008_wdt: Convert to use device managed functions and other improvements 2019-05-05 21:02:37 +02:00
pretimeout_noop.c
pretimeout_panic.c
qcom-wdt.c watchdog: qcom-wdt: Convert to use device managed functions and other improvements 2019-05-05 21:02:26 +02:00
rave-sp-wdt.c
rc32434_wdt.c
rdc321x_wdt.c
renesas_wdt.c
retu_wdt.c
riowd.c
rn5t618_wdt.c watchdog: rn5t618_wdt: Use 'dev' instead of dereferencing it repeatedly 2019-05-05 21:02:26 +02:00
rt2880_wdt.c watchdog: rt2880_wdt: Convert to use device managed functions and other improvements 2019-05-05 21:02:36 +02:00
rtd119x_wdt.c watchdog: rtd119x_wdt: Convert to use device managed functions and other improvements 2019-05-05 21:02:26 +02:00
rza_wdt.c watchdog: rza_wdt: Use 'dev' instead of dereferencing it repeatedly 2019-05-05 21:02:27 +02:00
s3c2410_wdt.c
sa1100_wdt.c
sama5d4_wdt.c watchdog: sama5d4_wdt: Convert to use device managed functions and other improvements 2019-05-05 21:02:27 +02:00
sb_wdog.c
sbc60xxwdt.c
sbc7240_wdt.c
sbc8360.c
sbc_epx_c3.c
sbc_fitpc2_wdt.c
sbsa_gwdt.c watchdog: sbsa_gwdt: Convert to use device managed functions and other improvements 2019-05-05 21:02:34 +02:00
sc520_wdt.c
sc1200wdt.c
sch311x_wdt.c
scx200_wdt.c
shwdt.c
sirfsoc_wdt.c watchdog: sirfsoc_wdt: Convert to use device managed functions and other improvements 2019-05-05 21:02:27 +02:00
smsc37b787_wdt.c
softdog.c
sp805_wdt.c
sp5100_tco.c
sp5100_tco.h
sprd_wdt.c watchdog: sprd_wdt: Convert to use device managed functions and other improvements 2019-05-05 21:02:28 +02:00
st_lpc_wdt.c watchdog: st_lpc_wdt: Convert to use device managed functions 2019-05-05 21:02:28 +02:00
stm32_iwdg.c watchdog: stm32_iwdg: Convert to use device managed functions and other improvements 2019-05-05 21:02:35 +02:00
stmp3xxx_rtc_wdt.c watchdog: stmp3xxx_rtc_wdt: Convert to use device managed functions 2019-05-05 21:02:28 +02:00
stpmic1_wdt.c watchdog: stpmic1_wdt: Use 'dev' instead of dereferencing it repeatedly 2019-05-05 21:02:29 +02:00
sun4v_wdt.c
sunxi_wdt.c watchdog: sunxi_wdt: Use 'dev' instead of dereferencing it repeatedly 2019-05-05 21:02:29 +02:00
tangox_wdt.c watchdog: tangox_wdt: Convert to use device managed functions and other improvements 2019-05-05 21:02:30 +02:00
tegra_wdt.c watchdog: tegra_wdt: Use watchdog_stop_on_unregister and other improvements 2019-05-05 21:02:31 +02:00
tqmx86_wdt.c watchdog: tqmx86_wdt: Use 'dev' instead of dereferencing it repeatedly 2019-05-05 21:02:31 +02:00
ts72xx_wdt.c watchdog: ts72xx_wdt: Use 'dev' instead of dereferencing it repeatedly 2019-05-05 21:02:32 +02:00
ts4800_wdt.c watchdog: ts4800_wdt: Convert to use device managed functions and other improvements 2019-05-05 21:02:31 +02:00
twl4030_wdt.c watchdog: twl4030_wdt: Convert to use device managed functions and other improvements 2019-05-05 21:02:32 +02:00
txx9wdt.c
uniphier_wdt.c watchdog: uniphier_wdt: drop platform_set_drvdata 2019-05-05 21:02:32 +02:00
ux500_wdt.c watchdog: ux500_wdt: Convert to use device managed functions and other improvements 2019-05-05 21:02:35 +02:00
via_wdt.c
w83627hf_wdt.c
w83877f_wdt.c
w83977f_wdt.c
wafer5823wdt.c
watchdog_core.c
watchdog_core.h
watchdog_dev.c
watchdog_pretimeout.c
watchdog_pretimeout.h
wd501p.h
wdat_wdt.c watchdog: wdat_wdt: Use 'dev' instead of dereferencing it repeatedly 2019-05-05 21:02:33 +02:00
wdrtas.c
wdt285.c
wdt977.c
wdt_pci.c
wdt.c
wm831x_wdt.c watchdog: wm831x_wdt: Use 'dev' instead of dereferencing it repeatedly 2019-05-05 21:02:33 +02:00
wm8350_wdt.c
xen_wdt.c watchdog: xen_wdt: Use 'dev' instead of dereferencing it repeatedly 2019-05-05 21:02:33 +02:00
ziirave_wdt.c
zx2967_wdt.c watchdog: zx2967_wdt: Convert to use device managed functions and other improvements 2019-05-05 21:02:34 +02:00