From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF24DC282CA for ; Wed, 13 Feb 2019 18:40:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AB806222D7 for ; Wed, 13 Feb 2019 18:40:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550083257; bh=vXIZVZzFV7VPxjgpDT0JGv2GM0B9tIxyWMXYgbOvxRM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=ezHjw+UHshqDMBnU5KvOjY+quUujMMHt9P4HyAu8rDS9ce0rgLYc9TRIW9t8cP/Lp PGr75YXGiEjJakWciLVB8zXMWi61wSTZFlDfTK00wbbA7iP/7fdfjfhIiypWCq3jMG oOi4lAoxl7VV/Jg9GVIgJgves098Qz2DOqASlI8s= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391304AbfBMSk4 (ORCPT ); Wed, 13 Feb 2019 13:40:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:39162 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405494AbfBMSkz (ORCPT ); Wed, 13 Feb 2019 13:40:55 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 190EE222D7; Wed, 13 Feb 2019 18:40:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550083254; bh=vXIZVZzFV7VPxjgpDT0JGv2GM0B9tIxyWMXYgbOvxRM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iNlg8T0todejfCkOHFGuYM/DqDJu9q6iC9Qpry7aE6jIj0dbCFqRz4cbBiJ6mIsyB W5xw/ALZp40wwQEDuHPOymfKSeDDpbPclvW4RHj88zJGnZfJsCIIqOFZVpobeZGTf5 u5ZjtVrBtPyPbUTWq6c3JtSdeFFIOBrSLLUOcAbo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Russell King , Arnd Bergmann Subject: [PATCH 4.14 13/35] ARM: iop32x/n2100: fix PCI IRQ mapping Date: Wed, 13 Feb 2019 19:38:08 +0100 Message-Id: <20190213183706.787745115@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190213183706.176685027@linuxfoundation.org> References: <20190213183706.176685027@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Russell King commit db4090920ba2d61a5827a23e441447926a02ffee upstream. Booting 4.20 on a TheCUS N2100 results in a kernel oops while probing PCI, due to n2100_pci_map_irq() having been discarded during boot. Signed-off-by: Russell King Cc: stable@vger.kernel.org # 2.6.18+ Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- arch/arm/mach-iop32x/n2100.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/arch/arm/mach-iop32x/n2100.c +++ b/arch/arm/mach-iop32x/n2100.c @@ -75,8 +75,7 @@ void __init n2100_map_io(void) /* * N2100 PCI. */ -static int __init -n2100_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) +static int n2100_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) { int irq;