aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorLad Prabhakar <[email protected]>2025-01-13 12:26:36 +0000
committerWolfram Sang <[email protected]>2025-01-14 12:01:30 +0000
commit279c83db24552e83caa09347358473e633e56617 (patch)
tree98209a5b7aad04924df23e60d14bd266862c3c5f /net/unix/sysctl_net_unix.c
parenti2c: riic: Use dev_err_probe in probe and riic_init_hw functions (diff)
downloadkernel-279c83db24552e83caa09347358473e633e56617.tar.gz
kernel-279c83db24552e83caa09347358473e633e56617.zip
i2c: riic: Use local `dev` pointer in `dev_err_probe()`
Update the `riic_init_hw()` function to use the local `dev` pointer in calls to `dev_err_probe()`. Previously, `riic_init_hw()` used `riic->adapter.dev` in error reporting. Since this function is invoked during the probe phase, the I2C adapter is not yet initialized, leading to `(null) ...` being printed in error messages. This patch fixes the issue by consistently using the local `dev` pointer, which points to `riic->adapter.dev.parent`. Signed-off-by: Lad Prabhakar <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Wolfram Sang <[email protected]> Tested-by: Wolfram Sang <[email protected]> Tested-by: Claudiu Beznea <[email protected]> Reviewed-by: Claudiu Beznea <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions