Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bcma: gpio: set of_node regardless of the host type

DT allows describing many device types, not only platform ones. If e.g.
bcma is hosted on PCI(e) and it has its of_node, let's pass it to the
GPIO subsystem. This allows GPIO code to handle more hardware details
not only for bcma on a SoC.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

authored by

Rafał Miłecki and committed by
Kalle Valo
a4bb5b1b 9c28286b

+1 -2
+1 -2
drivers/bcma/driver_gpio.c
··· 185 185 chip->owner = THIS_MODULE; 186 186 chip->parent = bcma_bus_get_host_dev(bus); 187 187 #if IS_BUILTIN(CONFIG_OF) 188 - if (cc->core->bus->hosttype == BCMA_HOSTTYPE_SOC) 189 - chip->of_node = cc->core->dev.of_node; 188 + chip->of_node = cc->core->dev.of_node; 190 189 #endif 191 190 switch (bus->chipinfo.id) { 192 191 case BCMA_CHIP_ID_BCM4707: