Skip to content

Commit 4eb64ee

Browse files
Sourav Poddargregkh
authored andcommitted
driver: misc: bmp085: remove "of_match_table" property.
There is an automatic binding done for I2C devices in the of_i2c core code. So, DT will be able to bind to any I2C device using the already existing table: MODULE_DEVICE_TABLE(i2c, bmp085_id). Tested on omap5430 evm. Signed-off-by: Sourav Poddar <sourav.poddar@ti.com> Cc: Benoit Cousson <b-cousson@ti.com> Cc: Santosh Shilimkar <santosh.shilimkar@ti.com> Acked-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 567fd1d commit 4eb64ee

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

drivers/misc/bmp085-i2c.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,6 @@ static int bmp085_i2c_remove(struct i2c_client *client)
5757
return bmp085_remove(&client->dev);
5858
}
5959

60-
static const struct of_device_id bmp085_of_match[] = {
61-
{ .compatible = "bosch,bmp085", },
62-
{ },
63-
};
64-
MODULE_DEVICE_TABLE(of, bmp085_of_match);
65-
6660
static const struct i2c_device_id bmp085_id[] = {
6761
{ BMP085_NAME, 0 },
6862
{ "bmp180", 0 },
@@ -74,7 +68,6 @@ static struct i2c_driver bmp085_i2c_driver = {
7468
.driver = {
7569
.owner = THIS_MODULE,
7670
.name = BMP085_NAME,
77-
.of_match_table = bmp085_of_match
7871
},
7972
.id_table = bmp085_id,
8073
.probe = bmp085_i2c_probe,

0 commit comments

Comments
 (0)