[kernel/2.6.38] fix gcc-4.6 set but unused warnings
[openwrt.git] / target / linux / brcm63xx / patches-3.3 / 413-bcm63xx_enet-disable-clock-when-uninitializing-devic.patch
1 From fd15ecd10c95480be5635f8993b781fe3a1527c2 Mon Sep 17 00:00:00 2001
2 From: Maxime Bizon <mbizon@freebox.fr>
3 Date: Fri, 29 Apr 2011 16:54:50 +0200
4 Subject: [PATCH 29/63] bcm63xx_enet: disable clock when uninitializing device.
5
6 ---
7 drivers/net/ethernet/broadcom/bcm63xx_enet.c | 2 ++
8 1 files changed, 2 insertions(+), 0 deletions(-)
9
10 --- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c
11 +++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
12 @@ -1870,6 +1870,8 @@ static int __devexit bcm_enet_remove(str
13 }
14
15 /* release device resources */
16 + clk_disable(priv->mac_clk);
17 + clk_put(priv->mac_clk);
18 iounmap(priv->base);
19 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
20 release_mem_region(res->start, resource_size(res));
This page took 0.038422 seconds and 5 git commands to generate.