Skip to content

Commit 326345f

Browse files
linuswamalon
authored andcommitted
MIPS: pb44: Fix i2c-gpio GPIO descriptor table
I used bad names in my clumsiness when rewriting many board files to use GPIO descriptors instead of platform data. A few had the platform_device ID set to -1 which would indeed give the device name "i2c-gpio". But several had it set to >=0 which gives the names "i2c-gpio.0", "i2c-gpio.1" ... Fix the one affected board in the MIPS tree. Sorry. Fixes: b2e6355 ("i2c: gpio: Convert to use descriptors") Reported-by: Simon Guinot <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Reviewed-by: Paul Burton <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: Wolfram Sang <[email protected]> Cc: Simon Guinot <[email protected]> Cc: [email protected] Cc: <[email protected]> # 4.15+ Patchwork: https://patchwork.linux-mips.org/patch/19387/ Signed-off-by: James Hogan <[email protected]>
1 parent ce397d2 commit 326345f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/mips/ath79/mach-pb44.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#define PB44_KEYS_DEBOUNCE_INTERVAL (3 * PB44_KEYS_POLL_INTERVAL)
3535

3636
static struct gpiod_lookup_table pb44_i2c_gpiod_table = {
37-
.dev_id = "i2c-gpio",
37+
.dev_id = "i2c-gpio.0",
3838
.table = {
3939
GPIO_LOOKUP_IDX("ath79-gpio", PB44_GPIO_I2C_SDA,
4040
NULL, 0, GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN),

0 commit comments

Comments
 (0)