From 2d9be532c152b52721cd9d23f868ab9d36f4779a Mon Sep 17 00:00:00 2001 From: kannansel <80374134+kannansel@users.noreply.github.com> Date: Sun, 30 Jul 2023 22:18:36 +0530 Subject: [PATCH] Why I did it (#14826) Midstone platform has compilation error in master branch, fixed the same. How I did it Due to bullseye migration i2c_new_dummy API is deprecated modified with i2c_new_dummy_device. How to verify it Verified target/debs/bullseye/platform-modules-midstone-200i_0.2.2_amd64.deb is generated Co-authored-by: Kannan Selvaraj --- .../midstone-200i/modules/mc24lc64t.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/innovium/sonic-platform-modules-cel/midstone-200i/modules/mc24lc64t.c b/platform/innovium/sonic-platform-modules-cel/midstone-200i/modules/mc24lc64t.c index a391056d09..002172f587 100755 --- a/platform/innovium/sonic-platform-modules-cel/midstone-200i/modules/mc24lc64t.c +++ b/platform/innovium/sonic-platform-modules-cel/midstone-200i/modules/mc24lc64t.c @@ -94,7 +94,7 @@ static int mc24lc64t_probe(struct i2c_client *client, sizeof(struct mc24lc64t_data), GFP_KERNEL))) return -ENOMEM; - drvdata->fake_client = i2c_new_dummy(client->adapter, client->addr + 1); + drvdata->fake_client = i2c_new_dummy_device(client->adapter, client->addr + 1); if (!drvdata->fake_client) return -ENOMEM;