summaryrefslogtreecommitdiff
path: root/scripts/coccinelle/free/put_device.cocci
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/coccinelle/free/put_device.cocci')
-rw-r--r--scripts/coccinelle/free/put_device.cocci2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/coccinelle/free/put_device.cocci b/scripts/coccinelle/free/put_device.cocci
index 3ebebc064f10..120921366e84 100644
--- a/scripts/coccinelle/free/put_device.cocci
+++ b/scripts/coccinelle/free/put_device.cocci
@@ -24,7 +24,7 @@ if (id == NULL || ...) { ... return ...; }
when != of_dev_put(id)
when != if (id) { ... put_device(&id->dev) ... }
when != e1 = (T)id
- when != e1 = &id->dev
+ when != e1 = (T)(&id->dev)
when != e1 = get_device(&id->dev)
when != e1 = (T1)platform_get_drvdata(id)
(