driver: misc: bmp085: remove "of_match_table" property.
authorSourav Poddar <sourav.poddar@ti.com>
Mon, 6 Aug 2012 09:28:44 +0000 (14:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Aug 2012 17:10:02 +0000 (10:10 -0700)
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>
drivers/misc/bmp085-i2c.c

index 9943971c13e346a6d1d0f742df90c428024e1f71..a4f33c995ea17c6eabe257ae92c4fc950e49f0a5 100644 (file)
@@ -57,12 +57,6 @@ static int bmp085_i2c_remove(struct i2c_client *client)
        return bmp085_remove(&client->dev);
 }
 
-static const struct of_device_id bmp085_of_match[] = {
-       { .compatible = "bosch,bmp085", },
-       { },
-};
-MODULE_DEVICE_TABLE(of, bmp085_of_match);
-
 static const struct i2c_device_id bmp085_id[] = {
        { BMP085_NAME, 0 },
        { "bmp180", 0 },
@@ -74,7 +68,6 @@ static struct i2c_driver bmp085_i2c_driver = {
        .driver = {
                .owner  = THIS_MODULE,
                .name   = BMP085_NAME,
-               .of_match_table = bmp085_of_match
        },
        .id_table       = bmp085_id,
        .probe          = bmp085_i2c_probe,