]> git.baikalelectronics.ru Git - kernel.git/commit
misc: bh1780: probe from compatible string
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 2 Oct 2013 11:46:47 +0000 (13:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Oct 2013 23:02:35 +0000 (16:02 -0700)
commit0e039e6ed51c559fc5df55b523e85c3e791d3baa
treeb1db0ce131fa9d477b57534a382b5baa2dde8b9b
parentf2c54297e33a40897504fc14c01ebb3daaf0aedd
misc: bh1780: probe from compatible string

Currently the BH1780GLI I2C driver relies on the device tree node
having the right name, but this is fragile. Use the compatible
string to probe the driver instead.

Acked-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/bh1780gli.c