From patchwork Mon Aug 21 20:22:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 9913681 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6CA09602A0 for ; Mon, 21 Aug 2017 20:23:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6076B27E63 for ; Mon, 21 Aug 2017 20:23:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5544828755; Mon, 21 Aug 2017 20:23:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0771A287D4 for ; Mon, 21 Aug 2017 20:23:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754342AbdHUUXc (ORCPT ); Mon, 21 Aug 2017 16:23:32 -0400 Received: from mout.gmx.net ([212.227.17.21]:50748 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754328AbdHUUXa (ORCPT ); Mon, 21 Aug 2017 16:23:30 -0400 Received: from p100.fritz.box ([193.159.21.213]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M04uG-1dRH0e2SYm-00uFCd; Mon, 21 Aug 2017 22:23:04 +0200 From: Helge Deller To: linux-parisc@vger.kernel.org Cc: John David Anglin , James Bottomley Subject: [PATCH 11/14] parisc/net/lasi_82596: Fix section mismatches Date: Mon, 21 Aug 2017 22:22:58 +0200 Message-Id: <1503346981-28024-12-git-send-email-deller@gmx.de> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1503346981-28024-1-git-send-email-deller@gmx.de> References: <1503346981-28024-1-git-send-email-deller@gmx.de> X-Provags-ID: V03:K0:hD2JkNDWA+fntJZPf+ql5v0VpBBzZJPYRdr2inuO+7SZ6jTYK7J 8csaiK4O0l3AfYwk7fQxurwJBtypRstpw0ZKEELwIt9Wc8qZGLjw3Pbyye7DJxBYChjMguD 0qlm5awE0Wcpv8hALwKwo9lDqboyZ2WuhqUYkn5TPRNegKXgLwvgrYlk6Td0zN076524p4r cqPDfDvrcoGGxy8jOq3FA== X-UI-Out-Filterresults: notjunk:1; V01:K0:Pw9x6alkM2E=:V14tc//6b/S5PqUNsFFmLO Oumd/WxoV76z7CrJ4ZJ0Y+8vFpy6kchFlWU5PygfbjClkUlHBu/ivxJHinQUcpooK8RJVALIU tKNSX+no3SJ57C7eseXkEZYGmcnFQ5WVTPudUH5Rp+86ec3laVMFjhDbsRsAKVacxX6dHcTzy sRcqZ1Tp3eRjshcAMAMtpWZ/Z+QiCUN16u196vDogoJ+o4QMlh5BHPC3WUT7mLzO0dJiToY5Q yfGvLg26QWSjKZ+IDnMXeidWR+v2D62Mtb7DzRDdOmtv6/eSNScR4CiN8PKY1bcGIb7zpFHHl kh+L1BBVa8jkCEWqLiq0rftXi1/y38jkW4rClnKkuGrKMSLRDRBwKK+Mcg951wyOtFv+/1Jvw D4O5xMa1CtLKgtzcXgychGKqhlKGs+/JjqUu8EW9sHWlmSvGruxDFHsGDXSgV9U7Hce1RRu3r Rv/IExyi5ZwjmAKEwDYPKaUOlOyfwQWdpc7oCCz3u1e6pcVbibT5jBLzQmZzAckTjNzg2kkPY E13gh/kFZQJMvUWBtCG9sd/evpGzCgjhwggdepRsdTX2mt7/gftd2bOYmQZWhAVwWg0wv9/NZ s/QREqSTQv2oxi8qYPsu0oX2+QKHne2siGjF9m4knOr/kGWcgh2paqrXAAi0CQh+suE5/IhA3 7Sq0kIjEJr9jl19EeDMHMgSBv6OtujsrLBgBZlFIjzF4ZOhHyoCy18fqkBlqcSEU5gAVUaShI LX12aIuR2ReywlVW490cBMzulmZWx5h+meaU4oXxMmWgOIbM62YAFJ9DuPNJoO/KBz+aI9H0P sGd4yYa6gEBPaN3lMNog5h5/5IoQQ== Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Helge Deller --- drivers/net/ethernet/i825xx/lasi_82596.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/i825xx/lasi_82596.c b/drivers/net/ethernet/i825xx/lasi_82596.c index d787fdd..68a2af2 100644 --- a/drivers/net/ethernet/i825xx/lasi_82596.c +++ b/drivers/net/ethernet/i825xx/lasi_82596.c @@ -149,7 +149,7 @@ static void mpu_port(struct net_device *dev, int c, dma_addr_t x) #define LAN_PROM_ADDR 0xF0810000 -static int +static int __init lan_init_chip(struct parisc_device *dev) { struct net_device *netdevice; @@ -194,7 +194,7 @@ lan_init_chip(struct parisc_device *dev) return retval; } -static int lan_remove_chip(struct parisc_device *pdev) +static int __exit lan_remove_chip(struct parisc_device *pdev) { struct net_device *dev = parisc_get_drvdata(pdev); struct i596_private *lp = netdev_priv(dev); @@ -206,7 +206,7 @@ static int lan_remove_chip(struct parisc_device *pdev) return 0; } -static struct parisc_device_id lan_tbl[] = { +static struct parisc_device_id lan_tbl[] __initconst = { { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x0008a }, { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x00072 }, { 0, } @@ -214,11 +214,11 @@ static struct parisc_device_id lan_tbl[] = { MODULE_DEVICE_TABLE(parisc, lan_tbl); -static struct parisc_driver lan_driver = { +static struct parisc_driver lan_driver __refdata = { .name = "lasi_82596", .id_table = lan_tbl, .probe = lan_init_chip, - .remove = lan_remove_chip, + .remove = __exit_p(lan_remove_chip), }; static int lasi_82596_init(void)