mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
video: fbdev: offb: switch to using for_each_node_by_type
Instead of open-coding loops let's switch to a nice macro. Cc: Tomi Valkeinen <[email protected]> Cc: Yongji Xie <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]> Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
This commit is contained in:
parent
cd7b917c98
commit
8d22556873
1 changed files with 2 additions and 2 deletions
|
|
@ -668,14 +668,14 @@ static int __init offb_init(void)
|
|||
offb_init_nodriver(of_chosen, 1);
|
||||
}
|
||||
|
||||
for (dp = NULL; (dp = of_find_node_by_type(dp, "display"));) {
|
||||
for_each_node_by_type(dp, "display") {
|
||||
if (of_get_property(dp, "linux,opened", NULL) &&
|
||||
of_get_property(dp, "linux,boot-display", NULL)) {
|
||||
boot_disp = dp;
|
||||
offb_init_nodriver(dp, 0);
|
||||
}
|
||||
}
|
||||
for (dp = NULL; (dp = of_find_node_by_type(dp, "display"));) {
|
||||
for_each_node_by_type(dp, "display") {
|
||||
if (of_get_property(dp, "linux,opened", NULL) &&
|
||||
dp != boot_disp)
|
||||
offb_init_nodriver(dp, 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue