Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee4f3666 authored by Alexander Shiyan's avatar Alexander Shiyan Committed by David Woodhouse
Browse files

mtd: nand-gpio: Do not override GPIOs if driver uses platform_data but OF is...


mtd: nand-gpio: Do not override GPIOs if driver uses platform_data but OF is enabled in kernel config

Signed-off-by: default avatarAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent c85d32d5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -151,6 +151,9 @@ static int gpio_nand_get_config_of(const struct device *dev,
{
	u32 val;

	if (!dev->of_node)
		return -ENODEV;

	if (!of_property_read_u32(dev->of_node, "bank-width", &val)) {
		if (val == 2) {
			plat->options |= NAND_BUSWIDTH_16;