Skip to content

Commit 9fa2df6

Browse files
nmenonKevin Hilman
authored andcommitted
ARM: OMAP2+: OPP: allow OPP enumeration to continue if device is not present
On platforms such as OMAP3, certain variants may not have IVA, SGX or some specific component. We currently have a check to aid fixing wrong population of OPP entries for issues such as typos. This however causes a conflict with valid requirement where the SoC variant does not actually have the module present. So, reduce the severity of the print to a debug statement and skip registering that specific OPP, but continue down the list. Reported-by: Steve Sakoman <[email protected]> Reported-by: Maximilian Schwerin <[email protected]> Acked-by: Steve Sakoman <[email protected]> Tested-by: Maximilian Schwerin <[email protected]> Signed-off-by: Nishanth Menon <[email protected]> Signed-off-by: Kevin Hilman <[email protected]>
1 parent 9817985 commit 9fa2df6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm/mach-omap2/opp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ int __init omap_init_opp_table(struct omap_opp_def *opp_def,
6464
}
6565
oh = omap_hwmod_lookup(opp_def->hwmod_name);
6666
if (!oh || !oh->od) {
67-
pr_warn("%s: no hwmod or odev for %s, [%d] "
67+
pr_debug("%s: no hwmod or odev for %s, [%d] "
6868
"cannot add OPPs.\n", __func__,
6969
opp_def->hwmod_name, i);
70-
return -EINVAL;
70+
continue;
7171
}
7272
dev = &oh->od->pdev->dev;
7373

0 commit comments

Comments
 (0)