]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rtc: s35390a: Drop vendorless compatible string from match table
authorRob Herring (Arm) <robh@kernel.org>
Mon, 26 Aug 2024 19:13:20 +0000 (14:13 -0500)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 11 Sep 2024 22:15:49 +0000 (00:15 +0200)
There's no need to list "s35390a" in the DT match table. The I2C core
will strip any vendor prefix and match against the i2c_device_id table
which has an "s35390a" entry.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20240826191321.1410668-1-robh@kernel.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-s35390a.c

index 2d6b655a4b25b1d63aa6335c5ee0488492935154..e3dc18882f41445c41fbea56edbd5c869514880c 100644 (file)
@@ -56,7 +56,6 @@ static const struct i2c_device_id s35390a_id[] = {
 MODULE_DEVICE_TABLE(i2c, s35390a_id);
 
 static const __maybe_unused struct of_device_id s35390a_of_match[] = {
-       { .compatible = "s35390a" },
        { .compatible = "sii,s35390a" },
        { }
 };