Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755030Ab0BODzV (ORCPT ); Sun, 14 Feb 2010 22:55:21 -0500 Received: from mail-iw0-f201.google.com ([209.85.223.201]:65328 "EHLO mail-iw0-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754598Ab0BODzT (ORCPT ); Sun, 14 Feb 2010 22:55:19 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; b=QBJnmZTZ72cD1YOept/pQl4NKfsX4L4pkTqP4hWRKl1XwR3/p7/QTsSwhHxoR8WkvV j+U3xL7+VkZcl2jdZ3w0G1bms79aSgXTaWurUDOmEVnB6Q3I/8OTEpG21FBDHvlu0JoJ I+Ds0V1+mz9hST5sJKpKv2GGpxeg07a3EhJxI= Message-ID: <4B78C5A4.1040608@lwfinger.net> Date: Sun, 14 Feb 2010 21:55:16 -0600 From: Larry Finger User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100111 SUSE/3.0.1-1.1 Thunderbird/3.0.1 MIME-Version: 1.0 To: Greg Kroah-Hartman CC: Bernhard Schiffner , wireless , LKML Subject: [PATCH 1/3] staging: r8187se: Remove write_phy routine Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1613 Lines: 63 Remove a routine that is not used. Signed-off-by: Larry Finger --- r8180_core.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) Index: linux-2.6/drivers/staging/rtl8187se/r8180_core.c =================================================================== --- linux-2.6.orig/drivers/staging/rtl8187se/r8180_core.c +++ linux-2.6/drivers/staging/rtl8187se/r8180_core.c @@ -3207,43 +3207,6 @@ void write_phy_cck (struct net_device *d rtl8185_write_phy(dev, adr, data | 0x10000); } -/* 70*3 = 210 ms - * I hope this is enougth - */ -#define MAX_PHY 70 -void write_phy(struct net_device *dev, u8 adr, u8 data) -{ - u32 phy; - int i; - - phy = 0xff0000; - phy |= adr; - phy |= 0x80; /* this should enable writing */ - phy |= (data<<8); - - //PHY_ADR, PHY_R and PHY_W are contig and treated as one dword - write_nic_dword(dev,PHY_ADR, phy); - - phy= 0xffff00; - phy |= adr; - - write_nic_dword(dev,PHY_ADR, phy); - for(i=0;i> 16; - if(phy == data){ //SUCCESS! - force_pci_posting(dev); - mdelay(3); //random value - return; - }else{ - force_pci_posting(dev); - mdelay(3); //random value - } - } - DMESGW ("Phy writing %x %x failed!", adr,data); -} - void rtl8185_set_rate(struct net_device *dev) { int i; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/