From patchwork Mon Aug 21 20:22:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 9913673 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 E38B9602A0 for ; Mon, 21 Aug 2017 20:23:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D771D287F0 for ; Mon, 21 Aug 2017 20:23:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CAD71287FB; Mon, 21 Aug 2017 20:23:31 +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.4 required=2.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_SPAM 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 54597286D5 for ; Mon, 21 Aug 2017 20:23:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754340AbdHUUXb (ORCPT ); Mon, 21 Aug 2017 16:23:31 -0400 Received: from mout.gmx.net ([212.227.17.20]:49465 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754058AbdHUUXa (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 0MNMyz-1dd2XJ1xc1-006yZa; 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 10/14] parisc/serio: Fix section mismatches in gscps2 and hp_sdc drivers Date: Mon, 21 Aug 2017 22:22:57 +0200 Message-Id: <1503346981-28024-11-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:wud/JfWvwX0GsQlcSXD47KWZk02B7yzmDLtflhVyjjzL/rddgZn xe6nLEJSNVfgOhbj1racDMmL8dUJYhRaD/Kvv414vWJrthjd3zISwa+SZFDOjQ8b1YOcDN9 nJXwzRQe9KD5PCRzaMATbVzzZrRcvvR1wOWpYttyMm7we4kb1CTIhhdVUR0NTT5cT56jOJg Mwljmq5zo9vXGesjp5ZFg== X-UI-Out-Filterresults: notjunk:1; V01:K0:g8Sv+W2JO/I=:rb78KF3xs7JNij29M/Tmf0 RB04A3hLw8xYiRBMrRb2jXRcnfCvyaWaTSr1PBpD+Wjq7XfKiN8Nv9CPP+8RsleTTJKhqNjS8 Ow+MCxpcaEzc3aAEhc9mV+ETtvP1M/WLscjDP4/Lm8+LzoSVyQeuvWqgjAK1Mnypx0eIcQdBw OqI5xtRzRZe7MocsXDES+JSIrd/aJOG0QwVQtEMqok4HQlma7IRgnHS91R0qvZJ74GYumiSaS UCR149uzLb0t/4NuCET4SgFGGXeRPlexqM8JCPNRdSjiiUSQoXmSjqvTEc/elAi3pg3Yi8QgO Eb8wE5Qjm2wFP7lUABu7knppfnWq2aCw3xSI6fSWN5/9OFJZQzWiOl/0mx2dTAhzjov79tjvv YJ3NNG03xEb+Ix93cGAaD4I+r5un8iEyLZDx1n8t6fMRExNlxjl8BQmln00B0asYFK0cnXnYt +iqdNLuPTcen3W5JvNAli4HYnaVxR1d3FJkvzT5Ixqvn4ac9CFFRya9Yg91+bdIqkV70QN4sv zxI5aIbtUasOs9thn2UoFJ6M2174A52RoKeWCAx3SES92ordIQ/3IIZ8uczIdIofesTZCbCB7 4KScbua20i4cgtsWnUDg6v5AKZ1/Prtta2ZSaOpm/k8glHmL3rejdITpJtzEcmBndz0mXlVCJ VVZGK0jfn6LlSE6BtQtSkqjkViCwg+4SUo3sJ5MPgWvFODgFPQYtXtOiU6aIZSc7J54Bn5Nfl U1tZ+2pMVnU2VIl8dFXIOIPVX0iVSBiMh4fGwWArAXYQT9qFLxnEZ9umJm9qvHWmVD9QCIZoL tutnRyITWPXkW9QsLRAWAz4Nrt3ag== 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/input/serio/gscps2.c | 10 +++++----- drivers/input/serio/hp_sdc.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/input/serio/gscps2.c b/drivers/input/serio/gscps2.c index ecba666..0fa592c 100644 --- a/drivers/input/serio/gscps2.c +++ b/drivers/input/serio/gscps2.c @@ -325,7 +325,7 @@ static void gscps2_close(struct serio *port) * @return: success/error report */ -static int gscps2_probe(struct parisc_device *dev) +static int __init gscps2_probe(struct parisc_device *dev) { struct gscps2port *ps2port; struct serio *serio; @@ -412,7 +412,7 @@ static int gscps2_probe(struct parisc_device *dev) * @return: success/error report */ -static int gscps2_remove(struct parisc_device *dev) +static int __exit gscps2_remove(struct parisc_device *dev) { struct gscps2port *ps2port = dev_get_drvdata(&dev->dev); @@ -430,7 +430,7 @@ static int gscps2_remove(struct parisc_device *dev) } -static struct parisc_device_id gscps2_device_tbl[] = { +static struct parisc_device_id gscps2_device_tbl[] __initconst = { { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x00084 }, /* LASI PS/2 */ #ifdef DINO_TESTED { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x00096 }, /* DINO PS/2 */ @@ -439,11 +439,11 @@ static struct parisc_device_id gscps2_device_tbl[] = { }; MODULE_DEVICE_TABLE(parisc, gscps2_device_tbl); -static struct parisc_driver parisc_ps2_driver = { +static struct parisc_driver parisc_ps2_driver __refdata = { .name = "gsc_ps2", .id_table = gscps2_device_tbl, .probe = gscps2_probe, - .remove = gscps2_remove, + .remove = __exit_p(gscps2_remove), }; static int __init gscps2_init(void) diff --git a/drivers/input/serio/hp_sdc.c b/drivers/input/serio/hp_sdc.c index 1bfdae4..cb9ae5b 100644 --- a/drivers/input/serio/hp_sdc.c +++ b/drivers/input/serio/hp_sdc.c @@ -805,7 +805,7 @@ static void hp_sdc_kicker(unsigned long data) #if defined(__hppa__) -static const struct parisc_device_id hp_sdc_tbl[] = { +static struct parisc_device_id hp_sdc_tbl[] __initconst = { { .hw_type = HPHW_FIO, .hversion_rev = HVERSION_REV_ANY_ID, @@ -820,7 +820,7 @@ MODULE_DEVICE_TABLE(parisc, hp_sdc_tbl); static int __init hp_sdc_init_hppa(struct parisc_device *d); static struct delayed_work moduleloader_work; -static struct parisc_driver hp_sdc_driver = { +static struct parisc_driver hp_sdc_driver __refdata = { .name = "hp_sdc", .id_table = hp_sdc_tbl, .probe = hp_sdc_init_hppa,