diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-11-04 13:59:32 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-02-08 06:38:40 -0500 |
commit | bc51da4ee46d481dc3fbc57ec407594b80e92705 (patch) | |
tree | 35f3ad987f9c655127bd449a703b1222e6209484 /arch/arm/mach-omap2/clock24xx.h | |
parent | b36ee724208358bd892ad279efce629740517149 (diff) |
[ARM] omap: eliminate unnecessary conditionals in omap2_clk_wait_ready
Rather than employing run-time tests in omap2_clk_wait_ready() to
decide whether we need to wait for the clock to become ready, we
can set the .ops appropriately.
This change deals with the OMAP24xx and OMAP34xx conditionals only.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-omap2/clock24xx.h')
-rw-r--r-- | arch/arm/mach-omap2/clock24xx.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/clock24xx.h b/arch/arm/mach-omap2/clock24xx.h index b59bf902ce7c..d386b3dfabae 100644 --- a/arch/arm/mach-omap2/clock24xx.h +++ b/arch/arm/mach-omap2/clock24xx.h | |||
@@ -1455,7 +1455,7 @@ static const struct clksel dss1_fck_clksel[] = { | |||
1455 | 1455 | ||
1456 | static struct clk dss_ick = { /* Enables both L3,L4 ICLK's */ | 1456 | static struct clk dss_ick = { /* Enables both L3,L4 ICLK's */ |
1457 | .name = "dss_ick", | 1457 | .name = "dss_ick", |
1458 | .ops = &clkops_omap2_dflt_wait, | 1458 | .ops = &clkops_omap2_dflt, |
1459 | .parent = &l4_ck, /* really both l3 and l4 */ | 1459 | .parent = &l4_ck, /* really both l3 and l4 */ |
1460 | .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X, | 1460 | .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X, |
1461 | .clkdm_name = "dss_clkdm", | 1461 | .clkdm_name = "dss_clkdm", |
@@ -1466,7 +1466,7 @@ static struct clk dss_ick = { /* Enables both L3,L4 ICLK's */ | |||
1466 | 1466 | ||
1467 | static struct clk dss1_fck = { | 1467 | static struct clk dss1_fck = { |
1468 | .name = "dss1_fck", | 1468 | .name = "dss1_fck", |
1469 | .ops = &clkops_omap2_dflt_wait, | 1469 | .ops = &clkops_omap2_dflt, |
1470 | .parent = &core_ck, /* Core or sys */ | 1470 | .parent = &core_ck, /* Core or sys */ |
1471 | .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X | | 1471 | .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X | |
1472 | DELAYED_APP, | 1472 | DELAYED_APP, |
@@ -1500,7 +1500,7 @@ static const struct clksel dss2_fck_clksel[] = { | |||
1500 | 1500 | ||
1501 | static struct clk dss2_fck = { /* Alt clk used in power management */ | 1501 | static struct clk dss2_fck = { /* Alt clk used in power management */ |
1502 | .name = "dss2_fck", | 1502 | .name = "dss2_fck", |
1503 | .ops = &clkops_omap2_dflt_wait, | 1503 | .ops = &clkops_omap2_dflt, |
1504 | .parent = &sys_ck, /* fixed at sys_ck or 48MHz */ | 1504 | .parent = &sys_ck, /* fixed at sys_ck or 48MHz */ |
1505 | .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X | | 1505 | .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X | |
1506 | DELAYED_APP, | 1506 | DELAYED_APP, |
@@ -2206,7 +2206,7 @@ static struct clk icr_ick = { | |||
2206 | 2206 | ||
2207 | static struct clk cam_ick = { | 2207 | static struct clk cam_ick = { |
2208 | .name = "cam_ick", | 2208 | .name = "cam_ick", |
2209 | .ops = &clkops_omap2_dflt_wait, | 2209 | .ops = &clkops_omap2_dflt, |
2210 | .parent = &l4_ck, | 2210 | .parent = &l4_ck, |
2211 | .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X, | 2211 | .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X, |
2212 | .clkdm_name = "core_l4_clkdm", | 2212 | .clkdm_name = "core_l4_clkdm", |
@@ -2222,7 +2222,7 @@ static struct clk cam_ick = { | |||
2222 | */ | 2222 | */ |
2223 | static struct clk cam_fck = { | 2223 | static struct clk cam_fck = { |
2224 | .name = "cam_fck", | 2224 | .name = "cam_fck", |
2225 | .ops = &clkops_omap2_dflt_wait, | 2225 | .ops = &clkops_omap2_dflt, |
2226 | .parent = &func_96m_ck, | 2226 | .parent = &func_96m_ck, |
2227 | .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X, | 2227 | .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X, |
2228 | .clkdm_name = "core_l3_clkdm", | 2228 | .clkdm_name = "core_l3_clkdm", |