From patchwork Mon Aug 21 20:23:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 9913687 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 23EE6602A0 for ; Mon, 21 Aug 2017 20:23:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1843D1FE8D for ; Mon, 21 Aug 2017 20:23:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D29328803; Mon, 21 Aug 2017 20:23:35 +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 B419A1FE8D for ; Mon, 21 Aug 2017 20:23:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754353AbdHUUXe (ORCPT ); Mon, 21 Aug 2017 16:23:34 -0400 Received: from mout.gmx.net ([212.227.17.22]:56091 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754335AbdHUUXb (ORCPT ); Mon, 21 Aug 2017 16:23:31 -0400 Received: from p100.fritz.box ([193.159.21.213]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Ldttv-1dIq8B3bPP-00j4HU; 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 13/14] parisc/ipmi_si_intf: Fix section mismatches on parisc platform Date: Mon, 21 Aug 2017 22:23:00 +0200 Message-Id: <1503346981-28024-14-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:0A+QhY0XVoHmSBz/V2d41b4yYCfQJmBGwAbbfhsyQvWMN9Gaw2s LI263kbIfTe6zs4yICqi5o8dG3UnoRe7s1/gp0D0qeho30ZsaWPUNqW+xWIM31JHo0t3lYe rk5e05Fib0D3IVC7iLD95yuP56JJglirT4TL1+imf6zS7N6N1n8ecPwQ8HBGS0hvFtWqk4V emRqAaTblzAWrlM8I+AMw== X-UI-Out-Filterresults: notjunk:1; V01:K0:1FwWPUlfMRU=:UwHO6xvRXx3oEv+4s9lOas wasXat7ARWDRDctLa7Dp4GfICHjQKGOEBxKigJDP07KmC3JRsM6B/3rn1quP60N42HdwukT8G VLqMEEJxmrhfrUHgYhemh33B+26ftgWPzxubStuNDKxSpzNzXEWgOmmHU+tE0X9RZJaI1v5hx 5/+Y/Ip1axZv+NUw+S1WOZ4jtSift2oShjg4EWNlSKcc6EyVfxPg0tD31YiIrQFIf3S2Teg7Q N+esQvXH+6SHbSt/HV0Qg/yX0ArBE16fhc5a845rbmYX22pOrjU/lmOLGvBqaSfAzgri84H5c cLYc9vInw+LINm2xyc9QStluFth6knsHvWzmUSU5LgTYccw6lt23BBAppcRRW64vG5Ceic7HH 5nYpxhPLD7F+gVJgyT29bc8KEPe6mteLGHsnyvXHp2pJtJLgRYQ9pew0TUpLBnMNQuEcp03wt RplSUqrbnlnO41SX8NT+UMCuHEWjIkiuGH0ZI+hK01YEeIbquizx+e9Q6b66qV12cRM3ycoH6 YOU9R22VaA1mvlAo4AfOV2RFLf4ihaG4C2hm4e8VBJ03BdXrpLF3UwgHE4Fk24nXgThuvJ511 a0Kt//8jnavlo8V2DJBWwGZkX01dqu7oYc+jqwH4tZm0JVO4PXp1Hrmjkd1DBVDgjbElK/6KM ibJaOPC1CWHD+KLxmDkOIP0YHQI43Yiz0LrqvtMBG9PSeGgnEsFoR0f2I3qaD39hropsf/93o Kzj60mtxP9wNOvunrdHqKD7Jh00g0ZUKUkEKLkILfkesxCTAhCFsleHXjni8gg+yuSvvlB9wS WSOwjIRe1vZoER15bvXvDF0azitqw== 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 Additionally add a MODULE_DEVICE_TABLE entry so that udev can load the driver automatically. Signed-off-by: Helge Deller --- drivers/char/ipmi/ipmi_si_intf.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index 9859738..36f47e8 100644 --- a/drivers/char/ipmi/ipmi_si_intf.c +++ b/drivers/char/ipmi/ipmi_si_intf.c @@ -2812,7 +2812,7 @@ static struct platform_driver ipmi_driver = { }; #ifdef CONFIG_PARISC -static int ipmi_parisc_probe(struct parisc_device *dev) +static int __init ipmi_parisc_probe(struct parisc_device *dev) { struct smi_info *info; int rv; @@ -2850,22 +2850,24 @@ static int ipmi_parisc_probe(struct parisc_device *dev) return 0; } -static int ipmi_parisc_remove(struct parisc_device *dev) +static int __exit ipmi_parisc_remove(struct parisc_device *dev) { cleanup_one_si(dev_get_drvdata(&dev->dev)); return 0; } -static const struct parisc_device_id ipmi_parisc_tbl[] = { +static const struct parisc_device_id ipmi_parisc_tbl[] __initconst = { { HPHW_MC, HVERSION_REV_ANY_ID, 0x004, 0xC0 }, { 0, } }; -static struct parisc_driver ipmi_parisc_driver = { +MODULE_DEVICE_TABLE(parisc, ipmi_parisc_tbl); + +static struct parisc_driver ipmi_parisc_driver __refdata = { .name = "ipmi", .id_table = ipmi_parisc_tbl, .probe = ipmi_parisc_probe, - .remove = ipmi_parisc_remove, + .remove = __exit_p(ipmi_parisc_remove), }; #endif /* CONFIG_PARISC */