File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1666,9 +1666,9 @@ MODULE_ALIAS("spi:sc16is7xx");
1666
1666
#endif
1667
1667
1668
1668
#ifdef CONFIG_SERIAL_SC16IS7XX_I2C
1669
- static int sc16is7xx_i2c_probe (struct i2c_client * i2c ,
1670
- const struct i2c_device_id * id )
1669
+ static int sc16is7xx_i2c_probe (struct i2c_client * i2c )
1671
1670
{
1671
+ const struct i2c_device_id * id = i2c_client_get_device_id (i2c );
1672
1672
const struct sc16is7xx_devtype * devtype ;
1673
1673
struct regmap * regmap ;
1674
1674
@@ -1709,7 +1709,7 @@ static struct i2c_driver sc16is7xx_i2c_uart_driver = {
1709
1709
.name = SC16IS7XX_NAME ,
1710
1710
.of_match_table = sc16is7xx_dt_ids ,
1711
1711
},
1712
- .probe = sc16is7xx_i2c_probe ,
1712
+ .probe_new = sc16is7xx_i2c_probe ,
1713
1713
.remove = sc16is7xx_i2c_remove ,
1714
1714
.id_table = sc16is7xx_i2c_id_table ,
1715
1715
};
You can’t perform that action at this time.
0 commit comments