From patchwork Mon Aug 21 20:22:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 9913677 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 8BE2A602A0 for ; Mon, 21 Aug 2017 20:23:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F841286D0 for ; Mon, 21 Aug 2017 20:23:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 73DCB287F0; Mon, 21 Aug 2017 20:23:32 +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 1F68827E63 for ; Mon, 21 Aug 2017 20:23:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754344AbdHUUXb (ORCPT ); Mon, 21 Aug 2017 16:23:31 -0400 Received: from mout.gmx.net ([212.227.17.21]:63160 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754321AbdHUUXa (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 0MTwYX-1e9ygL32pN-00QiLm; 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 12/14] parisc/input/hilkbd: Fix section mismatches Date: Mon, 21 Aug 2017 22:22:59 +0200 Message-Id: <1503346981-28024-13-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:Dl9WISomNI1T3OlPRCtfKMz0lKnsvOTNOcQfWu4BoY9ElvRvE3m Z8LulmmUQ3/UBUoLMWfZOdzPAbgX34oqgdz+Wp4RfAViSrII249r7ZkXBi+feOoYkFyOxcO ItGQUqtLbAXi7KnlNA6yOIQbG4/J7bipXGhpzIiuqJxrjNYFXcp/Brqs08ib+cYCzp7Kclk wQgdHJDe8qq7p+f6mB6Wg== X-UI-Out-Filterresults: notjunk:1; V01:K0:yIbz8oC3uyg=:GZvtIw4GJYqFj1bWPqij9X hCpxPWhfU/dufyVbVfDlHZNwA4qO6vQR7drfiLHErKk95lJw61DLuoVasNrLSyyGShScsiDhv cCAqhStSP38RpnVX15VUBZmX2X8vV4zo5nk4az3FyPXFGEYJS+XxqC4qp12xzTM0yk0RUIZG4 7gB3uXa19Gt7HQERskwjrBej6a8Z5JOQzDvQc+GM3O3dOkJ1gGep4girrXrJ2YYB5YQ3qRvDI zsOkFf/y6sXtY0Z+TYyRWlOtcPu3Usa0j/8Bm0dhc22Akhiz5tDDmR8xPDU0IPCXXSW6mTJDW tGu6+QIaopEiszXsqZ25Y6yfWe70YbjbGJgKxwRW51aFm+lvDp0mdj3J80eAWSJc9ykc/t5qq 6ff1xyAfRbQz8tVLSM1z9bqXj/00tSlGgFz67DuUAz/W83oc09TuK8wR7BcsxVtDZJCVo46Lb HtoGkQYhQ832IyuBNS8altsrUUn+WWOoCPVtVPegU3CumWgxjthuV/UVTZytXpgHyzQJ0wEsj v6z+auXPDwdtDJNK/P53KYulQfiHCVpyEfHLZcVdzhEK6oR2Qi+QYFTCGEiTV2ycBTK5pfXXV uoSPr4KhRaHVeitNwhBy1Qxy1CprBOousTYBJVHqHKjRgIFgY23SeKmok5/BFY/mXXARbUCo3 uUb9fRFJKgEWtqsAZSzPCz5F97sV5CPWxC+3ms3zwdqf0PYxDv5rLmDLz6m8aCZY9SfJH2Kv4 8iMq3l/Ovh2lKnItctgawn+4d0h6tKiv0LU+6awnP7lyazYh1gEUd/1Nw/ZcKYtmC6xh2fGBp H1R8Vo17i1aTKd1fYRtHFdxYY5CEg== 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/keyboard/hilkbd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/input/keyboard/hilkbd.c b/drivers/input/keyboard/hilkbd.c index 198dc07..9ea3a10 100644 --- a/drivers/input/keyboard/hilkbd.c +++ b/drivers/input/keyboard/hilkbd.c @@ -299,7 +299,7 @@ static void hil_keyb_exit(void) } #if defined(CONFIG_PARISC) -static int hil_probe_chip(struct parisc_device *dev) +static int __init hil_probe_chip(struct parisc_device *dev) { /* Only allow one HIL keyboard */ if (hil_dev.dev) @@ -320,14 +320,14 @@ static int hil_probe_chip(struct parisc_device *dev) return hil_keyb_init(); } -static int hil_remove_chip(struct parisc_device *dev) +static int __exit hil_remove_chip(struct parisc_device *dev) { hil_keyb_exit(); return 0; } -static struct parisc_device_id hil_tbl[] = { +static struct parisc_device_id hil_tbl[] __initconst = { { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x00073 }, { 0, } }; @@ -337,11 +337,11 @@ static struct parisc_device_id hil_tbl[] = { MODULE_DEVICE_TABLE(parisc, hil_tbl); #endif -static struct parisc_driver hil_driver = { +static struct parisc_driver hil_driver __refdata = { .name = "hil", .id_table = hil_tbl, .probe = hil_probe_chip, - .remove = hil_remove_chip, + .remove = __exit_p(hil_remove_chip), }; static int __init hil_init(void)