Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2978683imu; Sun, 9 Dec 2018 14:09:38 -0800 (PST) X-Google-Smtp-Source: AFSGD/V+KNcUYe4CW76TfG/qCQuNKact6GkRVNYH5bD9eO5CMPdWvXJWmnRbB1XQMZVYjcEX4jt4 X-Received: by 2002:a17:902:a83:: with SMTP id 3mr9227296plp.276.1544393378048; Sun, 09 Dec 2018 14:09:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544393378; cv=none; d=google.com; s=arc-20160816; b=WzZ3q9/OihcaxZ8UlbS274vkkT0X7r+ms8IFxyt3qPMnnl7gJVgYMRoFGG6Tkbh9Mi N6mKuPEicBkYQNoF+tgEMS3vwfEikIK735r/aYut92AMshBaQ0Kpfa4A7lHzE3/GwOLa qXX5NwyCBKMrAl+s26nEoDEnS7ffvVcBqO3QTWpTBTYKu/rKPj8eql2X8bAT3PuWtUZh YXMuJQCBN7pbCWcwkwvEt5KkkVXVV2vGLNiCQWbPw6AjkpC69y4H8EjdQlYieGOV5qin fQ0lJ3qg1a11UR8F6jWDIPpX/whNee7C8of72APYj/bhIUB7andUP1SNPWN/JZ3QfD42 xGvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=ahPWM1waA66/R5K57GlV2z9yDYpiyTWf/fFRdpnkuq4=; b=Pb6sDtF/pLex+QmqFXwWvvhctT6/5KAdKt3D82JfCfSSxhmFJHBYrEmZPLrSU3aXaM UwRSHQj4pvziw4T/dfv2UwNEwstLBW5zT7jCpSMH3u8amz1CtbwkF0N/B7migC9n21iQ +/WStpBNW09WDirVZKsLUVr7AkwJM42bfjqDGfZHiDVpJtWRXzyYaCt4+65a/O1AXdEI DC4nutiw/Mj10CFdZyHY5TsLcQrqCM25/o5r0TDMiJyEi3pMG6qepYXWY3HOwx0soggp 7geVW4hSystomHMoy5/PQDfZe+7eTF1FSHoRMVA+ecLmk7v/qONS3ftI5nVe1zD4Fmnl WN4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v30si7841434pga.45.2018.12.09.14.09.22; Sun, 09 Dec 2018 14:09:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727786AbeLIWGo (ORCPT + 99 others); Sun, 9 Dec 2018 17:06:44 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:37100 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727773AbeLIWGk (ORCPT ); Sun, 9 Dec 2018 17:06:40 -0500 Received: from pub.yeoldevic.com ([81.174.156.145] helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gW73P-0002pr-En; Sun, 09 Dec 2018 21:55:59 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gW72Z-0003FY-I5; Sun, 09 Dec 2018 21:55:07 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Martin Kaiser" , "Miquel Raynal" , "Boris Brezillon" Date: Sun, 09 Dec 2018 21:50:33 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) X-Patchwork-Hint: ignore Subject: [PATCH 3.16 043/328] mtd: rawnand: mxc: remove __init qualifier from mxcnd_probe_dt In-Reply-To: X-SA-Exim-Connect-IP: 81.174.156.145 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.62-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Martin Kaiser commit 24f0ae995deb728076e3ea93fea1949a9775debf upstream. Using the sysfs unbind, bind nodes, mxcnd_probe and mxcnd_probe_dt can potentially be called at any time. After the __init functions are cleaned, mxcnd_probe_dt is no longer available. Calling it anyway causes a crash. mxcnd_probe used to be marked as __init, this was removed years ago. Remove the __init qualifier from from mxcnd_probe_dt as well. Fixes: 06f255106923 ("mtd: remove use of __devinit") Signed-off-by: Martin Kaiser Reviewed-by: Boris Brezillon Signed-off-by: Miquel Raynal [bwh: Backported to 3.16: adjust filename] Signed-off-by: Ben Hutchings --- drivers/mtd/nand/mxc_nand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/mtd/nand/mxc_nand.c +++ b/drivers/mtd/nand/mxc_nand.c @@ -1360,7 +1360,7 @@ static const struct of_device_id mxcnd_d { /* sentinel */ } }; -static int __init mxcnd_probe_dt(struct mxc_nand_host *host) +static int mxcnd_probe_dt(struct mxc_nand_host *host) { struct device_node *np = host->dev->of_node; struct mxc_nand_platform_data *pdata = &host->pdata; @@ -1387,7 +1387,7 @@ static int __init mxcnd_probe_dt(struct return 0; } #else -static int __init mxcnd_probe_dt(struct mxc_nand_host *host) +static int mxcnd_probe_dt(struct mxc_nand_host *host) { return 1; }