diff options
author | Wan ZongShun <mcuos.com@gmail.com> | 2010-07-13 19:48:45 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-15 22:05:17 -0400 |
commit | d1853dc8fa8e6478707bf5d8e9d0b949974c2dde (patch) | |
tree | 9ea0228ccbe05155dfb30587206e3ee153395b22 /drivers/net/arm | |
parent | 0a645e809759a4b9c876d3e9ca6c139784a97a38 (diff) |
net/nuc900: enable Mac driver clock
This patch fixed a bug that Mac driver does not work,because I missed the clk enable.
I have ever tested the driver when I submitted previous Mac driver patch,
and it worked good, since my bootloader has enabled the clock in advance.
But when I try to use other bootloader where clock engine was disabled,the
Mac driver does not work, so I send this patch to fix this issue.
Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/arm')
-rw-r--r-- | drivers/net/arm/w90p910_ether.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/arm/w90p910_ether.c b/drivers/net/arm/w90p910_ether.c index 2e852463382b..4545d5a06c24 100644 --- a/drivers/net/arm/w90p910_ether.c +++ b/drivers/net/arm/w90p910_ether.c | |||
@@ -822,6 +822,9 @@ static int w90p910_ether_open(struct net_device *dev) | |||
822 | w90p910_set_global_maccmd(dev); | 822 | w90p910_set_global_maccmd(dev); |
823 | w90p910_enable_rx(dev, 1); | 823 | w90p910_enable_rx(dev, 1); |
824 | 824 | ||
825 | clk_enable(ether->rmiiclk); | ||
826 | clk_enable(ether->clk); | ||
827 | |||
825 | ether->rx_packets = 0x0; | 828 | ether->rx_packets = 0x0; |
826 | ether->rx_bytes = 0x0; | 829 | ether->rx_bytes = 0x0; |
827 | 830 | ||