To fix below building issue:
drivers/i2c/i2c-core-base.c: In function 'i2c_new_client_device':
drivers/i2c/i2c-core-base.c:985:1: warning: label 'out_remove_swnode' defined
but not used [-Wunused-label]
985 | out_remove_swnode:
| ^~~~~
Signed-off-by: Xulin Sun <[email protected]>
---
drivers/i2c/i2c-core-base.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c
index 9774218218ad..6c50e5c34e9c 100644
--- a/drivers/i2c/i2c-core-base.c
+++ b/drivers/i2c/i2c-core-base.c
@@ -967,7 +967,7 @@ i2c_new_client_device(struct i2c_adapter *adap, struct
i2c_board_info const *inf
if (adap->attach_ops &&
adap->attach_ops->attach_client &&
adap->attach_ops->attach_client(adap, info, client) != 0)
- goto out_err_put_of_node;
+ goto out_remove_swnode;
status = device_register(&client->dev);
if (status)
--
2.36.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12040):
https://lists.yoctoproject.org/g/linux-yocto/message/12040
Mute This Topic: https://lists.yoctoproject.org/mt/95819862/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-