From c4eba27d5ec51828915509b73dc233a9e820500f Mon Sep 17 00:00:00 2001 From: Jan Luebbe Date: Mon, 14 Oct 2013 17:14:59 +0200 Subject: [PATCH] misc/at25, dt: support probing at25 SPI EEPROM from DT The commit 13612b6a2df8daa4d3f9bcdb55b552e5e5fc6688 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 Signed-off-by: Markus Pargmann Signed-off-by: Greg Kroah-Hartman --- drivers/misc/eeprom/at25.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/misc/eeprom/at25.c b/drivers/misc/eeprom/at25.c index 840b3594a5ae3..4f3bca1003a17 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, -- 2.39.5