12 lines
412 B
Diff
12 lines
412 B
Diff
--- drivers/gpio/amlogic_gpio.c.orig 2018-11-17 11:44:17.580326515 +0100
|
|
+++ drivers/gpio/amlogic_gpio.c 2018-11-17 11:44:22.666420744 +0100
|
|
@@ -66,7 +66,7 @@ static int aml_gpio_get_function(struct
|
|
unsigned int bit = plat->regs[REG_DIR].bit + offset;
|
|
unsigned int val;
|
|
val = readl(reg);
|
|
- bool dir = !!(val * BIT(bit));
|
|
+ bool dir = !!(val && BIT(bit) != 0);
|
|
|
|
|
|
/* GPIOF_FUNC is not implemented yet */
|