summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorJan Luebbe <jlu@pengutronix.de>2013-10-14 15:14:59 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-16 19:36:09 (GMT)
commitfbfdb6ed6265bf62b326b8bd254994ae98cfdb46 (patch)
tree4f26d8d8151a7f78a4174c47d964161a90782b49 /drivers/misc
parent240ddd495a9e72073d11b1b7c2ec9ea14e7015cb (diff)
downloadlinux-fbfdb6ed6265bf62b326b8bd254994ae98cfdb46.tar.xz
misc/at25, dt: support probing at25 SPI EEPROM from DT
The commit d6ae0d578d24303941c1424b049d2cae28277666 introduced devicetree binding documentation for this driver, but the driver itself does not yet support the documented compatible entry. Fix this by adding the documented entry to the driver. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/eeprom/at25.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/misc/eeprom/at25.c b/drivers/misc/eeprom/at25.c
index 840b359..4f3bca1 100644
--- a/drivers/misc/eeprom/at25.c
+++ b/drivers/misc/eeprom/at25.c
@@ -462,10 +462,17 @@ static int at25_remove(struct spi_device *spi)
/*-------------------------------------------------------------------------*/
+static const struct of_device_id at25_of_match[] = {
+ { .compatible = "atmel,at25", },
+ { }
+};
+MODULE_DEVICE_TABLE(of, at25_of_match);
+
static struct spi_driver at25_driver = {
.driver = {
.name = "at25",
.owner = THIS_MODULE,
+ .of_match_table = at25_of_match,
},
.probe = at25_probe,
.remove = at25_remove,