linux/drivers/soc
Julia Lawall fdda0a6adc meson-gx-socinfo: add missing of_node_put after of_device_is_available
Add an of_node_put when a tested device node is not available.

The semantic patch that fixes this problem is as follows
(http://coccinelle.lip6.fr):

// <smpl>
@@
identifier f;
local idexpression e;
expression x;
@@

e = f(...);
... when != of_node_put(e)
    when != x = e
    when != e = x
    when any
if (<+...of_device_is_available(e)...+>) {
  ... when != of_node_put(e)
(
  return e;
|
+ of_node_put(e);
  return ...;
)
}
// </smpl>

Fixes: a9daaba296 ("soc: Add Amlogic SoC Information driver")
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2019-03-18 09:07:32 -07:00
..
actions soc: actions: sps: Add S900 power domains 2018-09-30 16:48:10 +02:00
amlogic meson-gx-socinfo: add missing of_node_put after of_device_is_available 2019-03-18 09:07:32 -07:00
atmel ARM: at91: add support in soc driver for new SAM9X60 2018-12-12 11:55:20 +01:00
bcm soc: bcm: bcm2835-pm: Make local symbol static 2019-01-31 21:05:58 -08:00
dove soc: Convert to using %pOFn instead of device_node.name 2018-10-04 14:16:01 -05:00
fsl ARM: SoC driver updates for 5.1 2019-03-06 09:41:12 -08:00
gemini soc: Add SoC driver for Gemini 2018-01-04 17:01:53 +01:00
imx soc: imx: Break dependency on SOC_IMX8MQ for GPCv2 2019-01-14 09:42:22 +08:00
lantiq MIPS: lantiq: Remove separate GPHY Firmware loader 2019-02-25 14:17:10 -08:00
mediatek soc: mediatek: Add Mediatek CMDQ helper 2018-12-02 20:46:10 +01:00
qcom soc: qcom: llcc-slice: Fix typos 2019-02-15 16:30:34 -06:00
renesas soc: renesas: r8a774c0-sysc: Fix initialization order of 3DG-{A,B} 2019-01-07 14:51:51 +01:00
rockchip soc: rockchip: power-domain: add rk3066 powerdomains 2018-11-06 14:13:32 +01:00
samsung soc: samsung: pm_domains: Deprecate support for clocks 2018-04-17 17:25:42 +02:00
sunxi soc: sunxi: sram: Add support for the H5 SoC system control 2018-12-05 11:55:36 +01:00
tegra ARM: SoC driver updates for 5.1 2019-03-06 09:41:12 -08:00
ti soc: ti: knav_dma: Use proper enum in pktdma_init_chan 2019-01-30 10:22:17 -08:00
ux500 ARM: ux500: move soc_id driver to drivers/soc 2016-07-12 11:24:09 +02:00
versatile soc: versatile: remove unnecessary static in realview_soc_probe() 2017-08-16 22:28:27 +02:00
xilinx drivers: soc: xilinx: Add ZynqMP power domain driver 2019-02-12 13:38:16 +01:00
zte soc: zte: Restrict SOC_ZTE to ARCH_ZX or COMPILE_TEST 2017-07-27 13:12:34 +02:00
Kconfig soc: xilinx: Create folder structure for soc specific drivers 2018-01-08 13:42:39 +01:00
Makefile drivers: soc: Allow building the amlogic drivers without ARCH_MESON 2018-11-15 12:25:20 -08:00