diff options
| author | Andi Shyti <andi.shyti@kernel.org> | 2026-07-25 01:02:00 +0200 |
|---|---|---|
| committer | Andi Shyti <andi.shyti@kernel.org> | 2026-07-25 01:02:00 +0200 |
| commit | ff6aa34f0c7b597384fa211ba75e68600901037e (patch) | |
| tree | 5c209942e329fa6bf3741637eb97b3b86b9d3045 | |
| parent | 270f77bc9a0ac08e32002a29843ab077167bf024 (diff) | |
| parent | 877ed2eb9c14e07e19041e88470f98df684537ea (diff) | |
| download | linux-next-ff6aa34f0c7b597384fa211ba75e68600901037e.tar.gz linux-next-ff6aa34f0c7b597384fa211ba75e68600901037e.zip | |
Merge branch 'i2c/i2c-fixes' into i2c/i2c-next
| -rw-r--r-- | drivers/i2c/busses/i2c-amd-mp2-plat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-amd-mp2-plat.c b/drivers/i2c/busses/i2c-amd-mp2-plat.c index 188e24cc4d35..9fdd6a5fb8b6 100644 --- a/drivers/i2c/busses/i2c-amd-mp2-plat.c +++ b/drivers/i2c/busses/i2c-amd-mp2-plat.c @@ -316,8 +316,10 @@ static int i2c_amd_probe(struct platform_device *pdev) amd_mp2_pm_runtime_put(mp2_dev); - if (ret < 0) + if (ret < 0) { dev_err(&pdev->dev, "i2c add adapter failed = %d\n", ret); + amd_mp2_unregister_cb(&i2c_dev->common); + } return ret; } |
