Skip to content

Commit

Permalink
misc/at25, dt: support probing at25 SPI EEPROM from DT
Browse files Browse the repository at this point in the history
The commit d6ae0d5 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>
  • Loading branch information
Jan Luebbe authored and Greg Kroah-Hartman committed Oct 16, 2013
1 parent 240ddd4 commit fbfdb6e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/misc/eeprom/at25.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fbfdb6e

Please sign in to comment.