Commit 31b0cecb authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Alexandre Belloni
Browse files

rtc: Switch i2c drivers back to use .probe()



After commit b8a1a4cd ("i2c: Provide a temporary .probe_new()
call-back type"), all drivers being converted to .probe_new() and then
03c835f4 ("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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230505121136.1185653-1-u.kleine-koenig@pengutronix.de


Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent b1911896
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -944,7 +944,7 @@ static struct i2c_driver abb5zes3_driver = {
		.pm = &abb5zes3_rtc_pm_ops,
		.of_match_table = of_match_ptr(abb5zes3_dt_match),
	},
	.probe_new = abb5zes3_probe,
	.probe = abb5zes3_probe,
	.id_table = abb5zes3_id,
};
module_i2c_driver(abb5zes3_driver);
+1 −1
Original line number Diff line number Diff line
@@ -584,7 +584,7 @@ static struct i2c_driver abeoz9_driver = {
		.name = "rtc-ab-eoz9",
		.of_match_table = of_match_ptr(abeoz9_dt_match),
	},
	.probe_new = abeoz9_probe,
	.probe = abeoz9_probe,
	.id_table = abeoz9_id,
};

+1 −1
Original line number Diff line number Diff line
@@ -992,7 +992,7 @@ static struct i2c_driver abx80x_driver = {
		.name	= "rtc-abx80x",
		.of_match_table = of_match_ptr(abx80x_of_match),
	},
	.probe_new	= abx80x_probe,
	.probe		= abx80x_probe,
	.id_table	= abx80x_id,
};

+1 −1
Original line number Diff line number Diff line
@@ -320,7 +320,7 @@ static struct i2c_driver bq32k_driver = {
		.name	= "bq32k",
		.of_match_table = of_match_ptr(bq32k_of_match),
	},
	.probe_new	= bq32k_probe,
	.probe		= bq32k_probe,
	.remove		= bq32k_remove,
	.id_table	= bq32k_id,
};
+1 −1
Original line number Diff line number Diff line
@@ -2011,7 +2011,7 @@ static struct i2c_driver ds1307_driver = {
		.name	= "rtc-ds1307",
		.of_match_table = ds1307_of_match,
	},
	.probe_new	= ds1307_probe,
	.probe		= ds1307_probe,
	.id_table	= ds1307_id,
};

Loading