Skip to content

Commit d5007f7

Browse files
ndreysgregkh
authored andcommitted
nvmem: vf610-ocotp: Do not use "&pdev->dev" explicitly
There already a "dev" variable for that. Use it. Cc: Srinivas Kandagatla <[email protected]> Cc: Heiko Stuebner <[email protected]> Cc: Masahiro Yamada <[email protected]> Cc: Carlo Caione <[email protected]> Cc: Kevin Hilman <[email protected]> Cc: Matthias Brugger <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: Andrey Smirnov <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 7b4e76c commit d5007f7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/nvmem/vf610-ocotp.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,7 @@ static int vf610_ocotp_probe(struct platform_device *pdev)
223223
struct resource *res;
224224
struct vf610_ocotp *ocotp_dev;
225225

226-
ocotp_dev = devm_kzalloc(&pdev->dev,
227-
sizeof(struct vf610_ocotp), GFP_KERNEL);
226+
ocotp_dev = devm_kzalloc(dev, sizeof(struct vf610_ocotp), GFP_KERNEL);
228227
if (!ocotp_dev)
229228
return -ENOMEM;
230229

0 commit comments

Comments
 (0)