Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sourav Poddar and committed by
Greg Kroah-Hartman
4eb64ee1 567fd1d4

-7
-7
drivers/misc/bmp085-i2c.c
··· 57 57 return bmp085_remove(&client->dev); 58 58 } 59 59 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 - 66 60 static const struct i2c_device_id bmp085_id[] = { 67 61 { BMP085_NAME, 0 }, 68 62 { "bmp180", 0 }, ··· 68 74 .driver = { 69 75 .owner = THIS_MODULE, 70 76 .name = BMP085_NAME, 71 - .of_match_table = bmp085_of_match 72 77 }, 73 78 .id_table = bmp085_id, 74 79 .probe = bmp085_i2c_probe,