mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 06:02:05 +00:00
net: mlxsw: i2c: Switch back to use struct i2c_driver's .probe()
After commitb8a1a4cd5a
("i2c: Provide a temporary .probe_new() call-back type"), all drivers being converted to .probe_new() and then commit03c835f498
("i2c: Switch .probe() to not take an id parameter") convert back to (the new) .probe() to be able to eventually drop .probe_new() from struct i2c_driver. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Tested-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
98c485eaf5
commit
3a2cb45ca0
@ -751,7 +751,7 @@ static void mlxsw_i2c_remove(struct i2c_client *client)
|
||||
|
||||
int mlxsw_i2c_driver_register(struct i2c_driver *i2c_driver)
|
||||
{
|
||||
i2c_driver->probe_new = mlxsw_i2c_probe;
|
||||
i2c_driver->probe = mlxsw_i2c_probe;
|
||||
i2c_driver->remove = mlxsw_i2c_remove;
|
||||
return i2c_add_driver(i2c_driver);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user