Skip to content

Commit bbfb0cf

Browse files
andy-shevgregkh
authored andcommitted
eeprom: digsy_mtc: Make GPIO lookup table match the device
commit 038ef0754aae76f79b147b8867f9250e6a976872 upstream. The dev_id value in the GPIO lookup table must match to the device instance name, which in this case is combined of name and platform device ID, i.e. "spi_gpio.1". But the table assumed that there was no platform device ID defined, which is wrong. Fix the dev_id value accordingly. Fixes: 9b00bc7 ("spi: spi-gpio: Rewrite to use GPIO descriptors") Cc: stable <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 7a5ffad commit bbfb0cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/misc/eeprom/digsy_mtc_eeprom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static struct platform_device digsy_mtc_eeprom = {
6060
};
6161

6262
static struct gpiod_lookup_table eeprom_spi_gpiod_table = {
63-
.dev_id = "spi_gpio",
63+
.dev_id = "spi_gpio.1",
6464
.table = {
6565
GPIO_LOOKUP("gpio@b00", GPIO_EEPROM_CLK,
6666
"sck", GPIO_ACTIVE_HIGH),

0 commit comments

Comments
 (0)