From patchwork Mon Aug 21 20:22:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 9913663 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 C7119602A0 for ; Mon, 21 Aug 2017 20:23:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB017287F0 for ; Mon, 21 Aug 2017 20:23:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF56F28800; Mon, 21 Aug 2017 20:23:23 +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 13C8A287F0 for ; Mon, 21 Aug 2017 20:23:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753983AbdHUUXW (ORCPT ); Mon, 21 Aug 2017 16:23:22 -0400 Received: from mout.gmx.net ([212.227.17.22]:54393 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753628AbdHUUXW (ORCPT ); Mon, 21 Aug 2017 16:23:22 -0400 Received: from p100.fritz.box ([193.159.21.213]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MPHrQ-1dfVVn1zCy-004UX1; Mon, 21 Aug 2017 22:23:03 +0200 From: Helge Deller To: linux-parisc@vger.kernel.org Cc: John David Anglin , James Bottomley Subject: [PATCH 04/14] parisc/mux: Fix section mismatches Date: Mon, 21 Aug 2017 22:22:51 +0200 Message-Id: <1503346981-28024-5-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:/fZNhW2IpRBlBKVWATRMI1nPq2qRIidBa55I++6/OruFcgmkyFe dcTuxJ6zayMZeDdvs317DJ/MFftWkyruKjruUjKs9Jg3ShAK2we++gESVeD3K/0jmh1+GLu mhn5kcyEJmwIFdof/qLjYjFLvZNb8efHYrdXZBSG6OBekVzXRHaLRvz0tBcLemTooRB/oyD NGHdRHp9dGJ9+X0ZHgykQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:WlU2mnKdaW4=:YZoZFLFY42lqwYD+qanb/N 4YkZfdENmVtIzsp6fzpLQkzY4zJ9eGtQfqJY9xWRRxUnrihMO0qqgqUW8uTCin0eY0A+xu6ml upGixkzyHJI9yyc/6HPYBg1hZTDVMvJaeAyC6RK53j5eRJlx/NGvhTdazHs6JAgsBJRdewQq6 oTdsfA/TXw6zEu1f8ZyYaIfWEneZ3l4dPPckWbxew3N8I7ddM2PX5skHHY8HFqwR8ucEPJtMX odYI6GOXyNyZetPodek0FrosQLbohKB8NYPnVg7HllmZBUwtdUFuSoFQsj5/vdj5fUMRqAyKS mWIYeYfQuGlL6S3oBkyhZyBO/pc3InBxOmQwejGy82cXN2+Tac8ca1pqVcPSTZyNJRyFMW6kn fEPqlFQUc7wJlQlNSxJy43Wi3PJ67YOMakZCrTQgSWj3aX362ZZ8pLH7viUwi778A2h07g855 MGjTvKf05O6Mvl39z4wILCJsITKoyxuzbKHK0WZSwkhi0Le9z4QvWLbU5NO+rX7mo5Lw+pm06 e/XfT7Fd7D4aB4PRtfXOLRB8XbKJMnOCqiA4WH0q2fYhEGCeLaxuTlnynrAM9W83eqhW4qB+q eNgg4crLyqQhKgTK969DwtsPzq00lRARU0hC6JYPDwt+kDzAKSgfuQPBs+nXdfB1WpkEFK0RI PzN2+gyNERa5o1nZBhR259+X0v8vejIubbSV7ZG9AorriqD0p+TLjsEPLY7o94VrNGtCbmbIm DH19fdV/On1CNElamVNeNEWQUUCX8OKTHjMhq+jlH3eESMwlzllO/tJfrfKXOtxzfRNWDS+7O f/SoE3qNhC96xzAG6nleoSrIMmOxw== 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/tty/serial/mux.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/tty/serial/mux.c b/drivers/tty/serial/mux.c index 8a4be4b..80c8105 100644 --- a/drivers/tty/serial/mux.c +++ b/drivers/tty/serial/mux.c @@ -503,7 +503,7 @@ static int __init mux_probe(struct parisc_device *dev) return 0; } -static int mux_remove(struct parisc_device *dev) +static int __exit mux_remove(struct parisc_device *dev) { int i, j; int port_count = (long)dev_get_drvdata(&dev->dev); @@ -536,13 +536,13 @@ static int mux_remove(struct parisc_device *dev) * This table only contains the parisc_device_id of known builtin mux * devices. All other mux cards will be detected by the generic mux_tbl. */ -static struct parisc_device_id builtin_mux_tbl[] = { +static struct parisc_device_id builtin_mux_tbl[] __initconst = { { HPHW_A_DIRECT, HVERSION_REV_ANY_ID, 0x15, 0x0000D }, /* All K-class */ { HPHW_A_DIRECT, HVERSION_REV_ANY_ID, 0x44, 0x0000D }, /* E35, E45, and E55 */ { 0, } }; -static struct parisc_device_id mux_tbl[] = { +static struct parisc_device_id mux_tbl[] __initconst = { { HPHW_A_DIRECT, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x0000D }, { 0, } }; @@ -550,18 +550,18 @@ static struct parisc_device_id mux_tbl[] = { MODULE_DEVICE_TABLE(parisc, builtin_mux_tbl); MODULE_DEVICE_TABLE(parisc, mux_tbl); -static struct parisc_driver builtin_serial_mux_driver = { +static struct parisc_driver builtin_serial_mux_driver __refdata = { .name = "builtin_serial_mux", .id_table = builtin_mux_tbl, .probe = mux_probe, - .remove = mux_remove, + .remove = __exit_p(mux_remove), }; -static struct parisc_driver serial_mux_driver = { +static struct parisc_driver serial_mux_driver __refdata = { .name = "serial_mux", .id_table = mux_tbl, .probe = mux_probe, - .remove = mux_remove, + .remove = __exit_p(mux_remove), }; /**