Skip to content

Commit 1d004af

Browse files
committed
Merge tag 'davinci-for-v5.10/soc' of git://git.kernel.org/pub/scm/linux/kernel/git/nsekhar/linux-davinci into arm/soc
This pull request contains a patch that shifts to using new simplified i2c driver probe method inside mach-davinci (i2c_driver->probe_new()) * tag 'davinci-for-v5.10/soc' of git://git.kernel.org/pub/scm/linux/kernel/git/nsekhar/linux-davinci: ARM: davinci: use simple i2c probe function Link: https://lore.kernel.org/r/83eff002-5247-4fb6-33b4-ce7cec3d2d5c@ti.com Signed-off-by: Olof Johansson <olof@lixom.net>
2 parents 511bd85 + 7de3f32 commit 1d004af

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

arch/arm/mach-davinci/board-dm644x-evm.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,7 @@ static const struct property_entry eeprom_properties[] = {
548548
*/
549549
static struct i2c_client *dm6446evm_msp;
550550

551-
static int dm6446evm_msp_probe(struct i2c_client *client,
552-
const struct i2c_device_id *id)
551+
static int dm6446evm_msp_probe(struct i2c_client *client)
553552
{
554553
dm6446evm_msp = client;
555554
return 0;
@@ -569,7 +568,7 @@ static const struct i2c_device_id dm6446evm_msp_ids[] = {
569568
static struct i2c_driver dm6446evm_msp_driver = {
570569
.driver.name = "dm6446evm_msp",
571570
.id_table = dm6446evm_msp_ids,
572-
.probe = dm6446evm_msp_probe,
571+
.probe_new = dm6446evm_msp_probe,
573572
.remove = dm6446evm_msp_remove,
574573
};
575574

arch/arm/mach-davinci/board-dm646x-evm.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,7 @@ static struct platform_device davinci_aemif_device = {
160160
#define DM646X_EVM_ATA_PWD BIT(1)
161161

162162
/* CPLD Register 0 Client: used for I/O Control */
163-
static int cpld_reg0_probe(struct i2c_client *client,
164-
const struct i2c_device_id *id)
163+
static int cpld_reg0_probe(struct i2c_client *client)
165164
{
166165
if (HAS_ATA) {
167166
u8 data;
@@ -197,7 +196,7 @@ static const struct i2c_device_id cpld_reg_ids[] = {
197196
static struct i2c_driver dm6467evm_cpld_driver = {
198197
.driver.name = "cpld_reg0",
199198
.id_table = cpld_reg_ids,
200-
.probe = cpld_reg0_probe,
199+
.probe_new = cpld_reg0_probe,
201200
};
202201

203202
/* LEDS */
@@ -397,8 +396,7 @@ static struct snd_platform_data dm646x_evm_snd_data[] = {
397396
#ifdef CONFIG_I2C
398397
static struct i2c_client *cpld_client;
399398

400-
static int cpld_video_probe(struct i2c_client *client,
401-
const struct i2c_device_id *id)
399+
static int cpld_video_probe(struct i2c_client *client)
402400
{
403401
cpld_client = client;
404402
return 0;
@@ -419,7 +417,7 @@ static struct i2c_driver cpld_video_driver = {
419417
.driver = {
420418
.name = "cpld_video",
421419
},
422-
.probe = cpld_video_probe,
420+
.probe_new = cpld_video_probe,
423421
.remove = cpld_video_remove,
424422
.id_table = cpld_video_id,
425423
};

0 commit comments

Comments
 (0)