Skip to content

Commit a297068

Browse files
Russ Dilltmlind
authored andcommitted
ARM: OMAP2+: smsc911x: Remove unused rate calculation
Looking back into git history, this code was never used and was probably left over from a copy/paste. Signed-off-by: Russ Dill <russ.dill@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent a0dbf2a commit a297068

2 files changed

Lines changed: 0 additions & 18 deletions

File tree

‎arch/arm/mach-omap2/board-omap3evm.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,6 @@ static struct omap_smsc911x_platform_data smsc911x_cfg = {
114114

115115
static inline void __init omap3evm_init_smsc911x(void)
116116
{
117-
struct clk *l3ck;
118-
unsigned int rate;
119-
120-
l3ck = clk_get(NULL, "l3_ck");
121-
if (IS_ERR(l3ck))
122-
rate = 100000000;
123-
else
124-
rate = clk_get_rate(l3ck);
125-
126117
/* Configure ethernet controller reset gpio */
127118
if (cpu_is_omap3430()) {
128119
if (get_omap3_evm_rev() == OMAP3EVM_BOARD_GEN_1)

‎arch/arm/mach-omap2/board-omap3stalker.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,6 @@ static struct omap_smsc911x_platform_data smsc911x_cfg = {
7272

7373
static inline void __init omap3stalker_init_eth(void)
7474
{
75-
struct clk *l3ck;
76-
unsigned int rate;
77-
78-
l3ck = clk_get(NULL, "l3_ck");
79-
if (IS_ERR(l3ck))
80-
rate = 100000000;
81-
else
82-
rate = clk_get_rate(l3ck);
83-
8475
omap_mux_init_gpio(19, OMAP_PIN_INPUT_PULLUP);
8576
gpmc_smsc911x_init(&smsc911x_cfg);
8677
}

0 commit comments

Comments
 (0)