From patchwork Tue Jan 24 01:49:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 92281 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1499898qgi; Mon, 23 Jan 2017 17:49:37 -0800 (PST) X-Received: by 10.99.2.151 with SMTP id 145mr36408243pgc.5.1485222577687; Mon, 23 Jan 2017 17:49:37 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j9si17370279pfa.127.2017.01.23.17.49.37; Mon, 23 Jan 2017 17:49:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752019AbdAXBtZ (ORCPT + 25 others); Mon, 23 Jan 2017 20:49:25 -0500 Received: from mail-pf0-f181.google.com ([209.85.192.181]:35438 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751838AbdAXBtW (ORCPT ); Mon, 23 Jan 2017 20:49:22 -0500 Received: by mail-pf0-f181.google.com with SMTP id f144so45654544pfa.2 for ; Mon, 23 Jan 2017 17:49:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=3JF/jqxXMHBeKkWZuZC06crD9sLlmNAMPdSv5GOtuUA=; b=RH1vkPhVqlEI0SQApvdhpW3CwWgynfOBvFbrHeqpbijUTQktzEzUv3P8R/ghwAtgTt EhEHyCcNKrBckwQgWHOi/MGyOFEAIWV/xWn4oTTJSFSnnHnnD24yHVpB12FtUiG+Pk9F Uj/fEUtbVoNPQcgI+XfJRmyiPEZEBSCg2ZCyg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=3JF/jqxXMHBeKkWZuZC06crD9sLlmNAMPdSv5GOtuUA=; b=io3cC7tu2zQReCpBsSnV7ghQsF+omDC+f7rXGVxEnxeN414NE3Nqg82f1YL2HKkpSH duGNuawVB+zH+BpwGuIdHPV7hMTfA8Qi2WUgscQvxb0iMy7bBYn4ZLVJLahZnLjlvKQJ E7udUDayCOErNsIVLyfeP/fy53j7dU0FbrqZzzHSnxcXxjToHxAnrswcZ7pR+aWfwld0 49Vq7XcDk/zNc0XOdEmuxa12VhRfQOTBAODP2xNE0biF+uYFWaucg3Ga6ojelj2ogH7c 08/knyaAV91hL2jD8eWlzZ0o9CakOp0Ag+LaQYQhn09GXfCY5GtW7vH3k1hVSgxkdlL5 ZuHg== X-Gm-Message-State: AIkVDXLG9ChfiWnnda68dAHWherCGt7tu7p8rrwwfER/g1pWrjva00tHVYTIVhh1+u4gGjdI X-Received: by 10.99.237.17 with SMTP id d17mr36410587pgi.82.1485222562120; Mon, 23 Jan 2017 17:49:22 -0800 (PST) Received: from localhost.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id s26sm621945pge.33.2017.01.23.17.49.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Jan 2017 17:49:21 -0800 (PST) From: Stephen Boyd To: "David S. Miller" Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH] net: ks8851: Drop eeprom_size structure member Date: Mon, 23 Jan 2017 17:49:20 -0800 Message-Id: <20170124014920.644-1-stephen.boyd@linaro.org> X-Mailer: git-send-email 2.10.0.297.gf6727b0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After commit 51b7b1c34e19 (KSZ8851-SNL: Add ethtool support for EEPROM via eeprom_93cx6, 2011-11-21) this structure member is unused. Delete it. Signed-off-by: Stephen Boyd --- Found while debugging an eeprom issue. drivers/net/ethernet/micrel/ks8851.c | 7 ------- 1 file changed, 7 deletions(-) -- 2.10.0.297.gf6727b0 diff --git a/drivers/net/ethernet/micrel/ks8851.c b/drivers/net/ethernet/micrel/ks8851.c index e7e1aff40bd9..955d69a8e8d3 100644 --- a/drivers/net/ethernet/micrel/ks8851.c +++ b/drivers/net/ethernet/micrel/ks8851.c @@ -84,7 +84,6 @@ union ks8851_tx_hdr { * @rc_ier: Cached copy of KS_IER. * @rc_ccr: Cached copy of KS_CCR. * @rc_rxqcr: Cached copy of KS_RXQCR. - * @eeprom_size: Companion eeprom size in Bytes, 0 if no eeprom * @eeprom: 93CX6 EEPROM state for accessing on-board EEPROM. * @vdd_reg: Optional regulator supplying the chip * @vdd_io: Optional digital power supply for IO @@ -120,7 +119,6 @@ struct ks8851_net { u16 rc_ier; u16 rc_rxqcr; u16 rc_ccr; - u16 eeprom_size; struct mii_if_info mii; struct ks8851_rxctrl rxctrl; @@ -1533,11 +1531,6 @@ static int ks8851_probe(struct spi_device *spi) /* cache the contents of the CCR register for EEPROM, etc. */ ks->rc_ccr = ks8851_rdreg16(ks, KS_CCR); - if (ks->rc_ccr & CCR_EEPROM) - ks->eeprom_size = 128; - else - ks->eeprom_size = 0; - ks8851_read_selftest(ks); ks8851_init_mac(ks);