aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorSourav Poddar <sourav.poddar@ti.com>2012-08-06 05:28:44 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-08-16 13:10:02 -0400
commit4eb64ee135af6b477ff149a2072bcfa3118afb94 (patch)
tree6d7d30522e2a8eeba03cf028ebfff2b51e948405 /drivers/misc
parent567fd1d4a66a2d6e5599be0ada582e0a3dbd23d4 (diff)
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>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/bmp085-i2c.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/misc/bmp085-i2c.c b/drivers/misc/bmp085-i2c.c
index 9943971c13e3..a4f33c995ea1 100644
--- a/drivers/misc/bmp085-i2c.c
+++ b/drivers/misc/bmp085-i2c.c
@@ -57,12 +57,6 @@ static int bmp085_i2c_remove(struct i2c_client *client)
57 return bmp085_remove(&client->dev); 57 return bmp085_remove(&client->dev);
58} 58}
59 59
60static const struct of_device_id bmp085_of_match[] = {
61 { .compatible = "bosch,bmp085", },
62 { },
63};
64MODULE_DEVICE_TABLE(of, bmp085_of_match);
65
66static const struct i2c_device_id bmp085_id[] = { 60static const struct i2c_device_id bmp085_id[] = {
67 { BMP085_NAME, 0 }, 61 { BMP085_NAME, 0 },
68 { "bmp180", 0 }, 62 { "bmp180", 0 },
@@ -74,7 +68,6 @@ static struct i2c_driver bmp085_i2c_driver = {
74 .driver = { 68 .driver = {
75 .owner = THIS_MODULE, 69 .owner = THIS_MODULE,
76 .name = BMP085_NAME, 70 .name = BMP085_NAME,
77 .of_match_table = bmp085_of_match
78 }, 71 },
79 .id_table = bmp085_id, 72 .id_table = bmp085_id,
80 .probe = bmp085_i2c_probe, 73 .probe = bmp085_i2c_probe,