aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2024-03-07 14:19:12 +0200
committerUlf Hansson <[email protected]>2024-04-02 12:21:38 +0200
commit0c997105aed8520eb5110286ec90e320bab0c222 (patch)
tree3f48d89d9475830a202ad1c19c59f66f5e7360d2 /scripts/gdb/linux/modules.py
parentde11e193aee47e6f374dd7582fc20b9c4db50c4e (diff)
mmc: sdhci-s3c: Replace deprecated of_get_named_gpio()
It seems the of_get_named_gpio() is solely used to check if the GPIO is present in DT as the function can return 0 if and only if it's present and it becomes in the global number space 0. But this quite likely shows that the code wasn't ever been tested on the systems when no GPIO is provided. In any case, the proper test is just to call of_property_present() without any attempts in requesting GPIO (as we haven't saved the number or descriptor anywhere in the code). Signed-off-by: Andy Shevchenko <[email protected]> Acked-by: Adrian Hunter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions