Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2198516ybv; Mon, 24 Feb 2020 00:54:48 -0800 (PST) X-Google-Smtp-Source: APXvYqydpSlhxhcz5rnKy/5I0sYI+S1X3ehdaaTwqMR4nyPitLi37jJGKoO5RikhQ3DnHn4mxep0 X-Received: by 2002:a05:6830:1e2b:: with SMTP id t11mr39623250otr.81.1582534488357; Mon, 24 Feb 2020 00:54:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582534488; cv=none; d=google.com; s=arc-20160816; b=WxzIiZolFHC1ySE35L6lOJ6sHcNMZsS0Wo8D8WbKSd3BE/v9g+omU12551Bogey6qC ESGQVXjWECEJg9YQ2HTxb+wNMdBFNwSMHB/c1+vuZje41RfZ7uwaVVRpyhVph/PDo48d GSo11bQ7OtH9eLfu6DMTyUzuLlKwXvwJX6n73hZg557XpR/Lg2g1qXbkzxmIuGqnGGGb KuOCy5zDnSvrVuBTIPAji/6ktq046/RYqdvY9BZRVGHQYd0EFv6W+I05wCh56X6N6bGZ Bg7yjrCtmm5sa4PogCm3L5VIGMU0W8A4RZJGuT5V05ngXfzzOuIC0XXqzRs0/8RS0RUY HEww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SA8yUoVsH+iFxYhKmYg3X6pSAG40KHCKzLX7n9F04z4=; b=Xh1GnwDf/uEttY3KFGz8gP/yL0zPp+/ZKSHVBFEHQk8pINKv6sOlVPAfqX7L7eE87k oJD0PrLDqXqL2+ME0+RCx/wxr8NB85qnMVjypdBNh1F463JB5I+GbfVzFwl4jDdqHhTH K82JEOJOELDqzlG8okjb/4U63yI9WpL6I6PACdBoIkpSvMiGd7QXPKjFVvSdmu4dl/gQ 4NrZAh6uEYqHDbSP6oIbpQX8tzwK+cojtH3z8bVa+GJDhQ5I4iX8c4LqZDzM3CB1Fsyl QMTIR0gft1YBRDfeXwdV3TNZFBwVuF6awaWdgda2Vec6SZjKUNuC4L54u4+v27eQLVYG CKkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lggZT0TI; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2si3555305oie.181.2020.02.24.00.54.36; Mon, 24 Feb 2020 00:54:48 -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=@kernel.org header.s=default header.b=lggZT0TI; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727896AbgBXIyQ (ORCPT + 99 others); Mon, 24 Feb 2020 03:54:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:37994 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727885AbgBXIyN (ORCPT ); Mon, 24 Feb 2020 03:54:13 -0500 Received: from localhost (unknown [213.57.247.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AB6FD21D56; Mon, 24 Feb 2020 08:54:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582534452; bh=jfBA030ZNUWZdUC2fcPCCqP9qkT4PNkK7GV+CJuCOpI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lggZT0TIEt3CuTGMfjlSGkLQm6WuuZFb0HWbP7yLwDibEfn9rWABou8IZb+NzCPEu KDMDjcFMKV3nfrxYmPfOIp83KRqay53+PX0XgR7lBw5+jygHkRqaqRZiAUyoWDrN8o jElT43AxYIrwE9oUJ4nvphG5LgQz55V52hH58DnQ= From: Leon Romanovsky To: "David S. Miller" , Jakub Kicinski Cc: Leon Romanovsky , Tom Lendacky , Keyur Chudgar , Don Fry , Veaceslav Falico , Jay Vosburgh , linux-acenic@sunsite.dk, Maxime Ripard , Heiko Stuebner , Mark Einon , Chris Snook , linux-rockchip@lists.infradead.org, Iyappan Subramanian , Igor Russkikh , David Dillow , Netanel Belgazal , Quan Nguyen , Jay Cliburn , Lino Sanfilippo , linux-arm-kernel@lists.infradead.org, Andreas Larsson , Andy Gospodarek , netdev@vger.kernel.org, Thor Thayer , linux-kernel@vger.kernel.org, Ion Badulescu , Arthur Kiyanovski , Jes Sorensen , nios2-dev@lists.rocketboards.org, Chen-Yu Tsai Subject: [PATCH net-next v1 17/18] net/arc: Delete driver version Date: Mon, 24 Feb 2020 10:53:10 +0200 Message-Id: <20200224085311.460338-18-leon@kernel.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200224085311.460338-1-leon@kernel.org> References: <20200224085311.460338-1-leon@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leon Romanovsky Drop constant driver version in favour of global linux kernel. Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/arc/emac.h | 1 - drivers/net/ethernet/arc/emac_arc.c | 2 -- drivers/net/ethernet/arc/emac_main.c | 1 - drivers/net/ethernet/arc/emac_rockchip.c | 2 -- 4 files changed, 6 deletions(-) diff --git a/drivers/net/ethernet/arc/emac.h b/drivers/net/ethernet/arc/emac.h index d9efbc8d783b..d820ae03a966 100644 --- a/drivers/net/ethernet/arc/emac.h +++ b/drivers/net/ethernet/arc/emac.h @@ -130,7 +130,6 @@ struct arc_emac_mdio_bus_data { */ struct arc_emac_priv { const char *drv_name; - const char *drv_version; void (*set_mac_speed)(void *priv, unsigned int speed); /* Devices */ diff --git a/drivers/net/ethernet/arc/emac_arc.c b/drivers/net/ethernet/arc/emac_arc.c index 539166112993..1c7736b7eaf7 100644 --- a/drivers/net/ethernet/arc/emac_arc.c +++ b/drivers/net/ethernet/arc/emac_arc.c @@ -15,7 +15,6 @@ #include "emac.h" #define DRV_NAME "emac_arc" -#define DRV_VERSION "1.0" static int emac_arc_probe(struct platform_device *pdev) { @@ -36,7 +35,6 @@ static int emac_arc_probe(struct platform_device *pdev) priv = netdev_priv(ndev); priv->drv_name = DRV_NAME; - priv->drv_version = DRV_VERSION; err = of_get_phy_mode(dev->of_node, &interface); if (err) { diff --git a/drivers/net/ethernet/arc/emac_main.c b/drivers/net/ethernet/arc/emac_main.c index 17bda4e8cc45..38cd968b6a3b 100644 --- a/drivers/net/ethernet/arc/emac_main.c +++ b/drivers/net/ethernet/arc/emac_main.c @@ -92,7 +92,6 @@ static void arc_emac_get_drvinfo(struct net_device *ndev, struct arc_emac_priv *priv = netdev_priv(ndev); strlcpy(info->driver, priv->drv_name, sizeof(info->driver)); - strlcpy(info->version, priv->drv_version, sizeof(info->version)); } static const struct ethtool_ops arc_emac_ethtool_ops = { diff --git a/drivers/net/ethernet/arc/emac_rockchip.c b/drivers/net/ethernet/arc/emac_rockchip.c index aae231c5224f..48ecdf15eddc 100644 --- a/drivers/net/ethernet/arc/emac_rockchip.c +++ b/drivers/net/ethernet/arc/emac_rockchip.c @@ -16,7 +16,6 @@ #include "emac.h" #define DRV_NAME "rockchip_emac" -#define DRV_VERSION "1.1" struct emac_rockchip_soc_data { unsigned int grf_offset; @@ -112,7 +111,6 @@ static int emac_rockchip_probe(struct platform_device *pdev) priv = netdev_priv(ndev); priv->emac.drv_name = DRV_NAME; - priv->emac.drv_version = DRV_VERSION; priv->emac.set_mac_speed = emac_rockchip_set_mac_speed; err = of_get_phy_mode(dev->of_node, &interface); -- 2.24.1