aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/coccinelle/free/put_device.cocci
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2021-02-11 17:27:44 -0600
committerRob Herring <robh@kernel.org>2021-02-12 19:23:39 -0600
commit83c4a4eec06a8fc46fc68c437424f9c89e4d9c72 (patch)
tree47073d53d8ee57d5204e38973c586e3735f669d1 /scripts/coccinelle/free/put_device.cocci
parentdt-bindings: usb: Change descibe to describe in usbmisc-imx.txt (diff)
downloadlinux-dev-83c4a4eec06a8fc46fc68c437424f9c89e4d9c72.tar.xz
linux-dev-83c4a4eec06a8fc46fc68c437424f9c89e4d9c72.zip
of: Remove of_dev_{get,put}()
of_dev_get() and of_dev_put are just wrappers for get_device()/put_device() on a platform_device. There's also already platform_device_{get,put}() wrappers for this purpose. Let's update the few users and remove of_dev_{get,put}(). Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Cc: "David S. Miller" <davem@davemloft.net> Cc: Jakub Kicinski <kuba@kernel.org> Cc: Frank Rowand <frowand.list@gmail.com> Cc: Patrice Chotard <patrice.chotard@st.com> Cc: Felipe Balbi <balbi@kernel.org> Cc: Julia Lawall <Julia.Lawall@inria.fr> Cc: Gilles Muller <Gilles.Muller@inria.fr> Cc: Nicolas Palix <nicolas.palix@imag.fr> Cc: Michal Marek <michal.lkml@markovi.net> Cc: linuxppc-dev@lists.ozlabs.org Cc: netdev@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-usb@vger.kernel.org Cc: cocci@systeme.lip6.fr Signed-off-by: Rob Herring <robh@kernel.org> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/r/20210211232745.1498137-2-robh@kernel.org
Diffstat (limited to 'scripts/coccinelle/free/put_device.cocci')
-rw-r--r--scripts/coccinelle/free/put_device.cocci1
1 files changed, 0 insertions, 1 deletions
diff --git a/scripts/coccinelle/free/put_device.cocci b/scripts/coccinelle/free/put_device.cocci
index 120921366e84..f09f1e79bfa6 100644
--- a/scripts/coccinelle/free/put_device.cocci
+++ b/scripts/coccinelle/free/put_device.cocci
@@ -21,7 +21,6 @@ id = of_find_device_by_node@p1(x)
if (id == NULL || ...) { ... return ...; }
... when != put_device(&id->dev)
when != platform_device_put(id)
- when != of_dev_put(id)
when != if (id) { ... put_device(&id->dev) ... }
when != e1 = (T)id
when != e1 = (T)(&id->dev)