From: Stephen Warren <[email protected]>

Some pins don't have a register and hence can't be configured. Don't warn
that those pins are unconfigured.

Signed-off-by: Stephen Warren <[email protected]>
---
 tegra_pmx_board_parser.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tegra_pmx_board_parser.py b/tegra_pmx_board_parser.py
index 7b45abe74a00..1ea16efb7dca 100644
--- a/tegra_pmx_board_parser.py
+++ b/tegra_pmx_board_parser.py
@@ -64,7 +64,7 @@ class Board(TopLevelParsedObj):
         return self._pincfgs_by_num
 
     def warn_about_unconfigured_pins(self):
-        unconfigured_gpio_pins = {gpio_pin.fullname for gpio_pin in 
self.soc.gpios_pins_by_num()}
+        unconfigured_gpio_pins = [gpio_pin.fullname for gpio_pin in 
self.soc.gpios_pins_by_num() if gpio_pin.reg]
         for gpio_pin in self.pincfgs_by_num():
             unconfigured_gpio_pins.remove(gpio_pin.gpio_pin.fullname)
         for gpio_pin in unconfigured_gpio_pins:
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to