提交 51ec811a 编写于 作者: P Paul Walmsley

OMAP3: id: add fallthrough warning; fix some CodingStyle issues

Emit a warning to the console in omap3_check_revision() if that code
cannot determine what type of SoC the system is currently running on.

Remove some extra whitespace, remove some duplicate code, and
add an appropriate comment to a fallthrough case.
Signed-off-by: NPaul Walmsley <paul@pwsan.com>
Cc: Hemant Pedanekar <hemantp@ti.com>
Tested-by: NIgor Grinberg <grinberg@compulab.co.il>
Tested-by: NAbhilash Koyamangalath <abhilash.kv@ti.com>

上级 9ed2ba7a
...@@ -336,8 +336,9 @@ static void __init omap3_check_revision(void) ...@@ -336,8 +336,9 @@ static void __init omap3_check_revision(void)
omap_chip.oc |= CHIP_IS_OMAP3630ES1_1; omap_chip.oc |= CHIP_IS_OMAP3630ES1_1;
break; break;
case 2: case 2:
/* FALLTHROUGH */
default: default:
omap_revision = OMAP3630_REV_ES1_2; omap_revision = OMAP3630_REV_ES1_2;
omap_chip.oc |= CHIP_IS_OMAP3630ES1_2; omap_chip.oc |= CHIP_IS_OMAP3630ES1_2;
} }
break; break;
...@@ -349,16 +350,16 @@ static void __init omap3_check_revision(void) ...@@ -349,16 +350,16 @@ static void __init omap3_check_revision(void)
omap_revision = TI8168_REV_ES1_0; omap_revision = TI8168_REV_ES1_0;
break; break;
case 1: case 1:
omap_revision = TI8168_REV_ES1_1; /* FALLTHROUGH */
break;
default: default:
omap_revision = TI8168_REV_ES1_1; omap_revision = TI8168_REV_ES1_1;
} }
break; break;
default: default:
/* Unknown default to latest silicon rev as default*/ /* Unknown default to latest silicon rev as default */
omap_revision = OMAP3630_REV_ES1_2; omap_revision = OMAP3630_REV_ES1_2;
omap_chip.oc |= CHIP_IS_OMAP3630ES1_2; omap_chip.oc |= CHIP_IS_OMAP3630ES1_2;
pr_warn("Warning: unknown chip type; assuming OMAP3630ES1.2\n");
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册