Skip to content

Commit b7743a9

Browse files
ndreysgregkh
authored andcommitted
nvmem: bcm-ocotp: Do not use "&pdev->dev" explicitly
There's "dev" variable for this already. 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 b28b738 commit b7743a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/nvmem/bcm-ocotp.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,7 @@ static int bcm_otpc_probe(struct platform_device *pdev)
262262
else if (of_device_is_compatible(dev->of_node, "brcm,ocotp-v2"))
263263
priv->map = &otp_map_v2;
264264
else {
265-
dev_err(&pdev->dev,
266-
"%s otpc config map not defined\n", __func__);
265+
dev_err(dev, "%s otpc config map not defined\n", __func__);
267266
return -EINVAL;
268267
}
269268

0 commit comments

Comments
 (0)