Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp4561991pja; Thu, 21 Nov 2019 21:54:54 -0800 (PST) X-Google-Smtp-Source: APXvYqxg/qIQJ67cej5wXwg5ML442bajyVThl3dXBacgW9wNfpKZGt56KJPv6A8iRqdusBAwu1AF X-Received: by 2002:a17:906:d96c:: with SMTP id rp12mr20040816ejb.253.1574402094628; Thu, 21 Nov 2019 21:54:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574402094; cv=none; d=google.com; s=arc-20160816; b=0dHjFW2WUgYG0AcyssogjZXEWjylIZo3sqUK566A0GMX3Hemv86xFY01hmvCTiMoqj TRvwCdIiDR3tP9PS+Fb8tO4iOFBrBBYBO9/IDxYkmssPqywtHUGa8W51IyiTr6T7y0Xb tOZE06a7mKA5tgoC/344LgR0lzXxuCzZWdxA8hrYS9KtcRcJ6wKXPeSe0YUP2fbyd8X6 P3tg9BF0V+Svx9j3Hp291a1pz5DmTEDYx7+9vw/vIm1590tSC/cil42cOeiVMzmNjjfR XSu5eZmya50WnuLu8t91AKoNdmghe7dBQw43/rhW2XMhqbKsafE2jkVWx0TzIkmg7V0l RszA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3WEI+ZmLzesw79zXyBjzlhTA4bcv/sSSatf/JTsysqo=; b=Qc8GAzdsgHpytCkAWk8cngRO9b/plQqNFCw4pRRb8yRyv3WXQEoYHJHlx4j0Fp22yH rQ6tMMkqNlKHd32uhysPd83QcEbszDyv9EmWqST0LquxCCPGybIVl20u6QBxCejEtvMI /bXY25u7VNsVdczpsNqFgKTedvCz1KicOQlDG01y8d3zqpO/ZjbE77Y7eLW8MJxYh5kb JKxNXOux0yRbnJmoym1DwiZxSCPycs2OymRL4YBhAdBwp0hxIMFu3q6dKUFIWXgelZvp 5PqMhnKDkifoNb2GQY3E5SxZd+2XpWn3gwuJ+LwOQVGfboiQD23OzGtBT0lybxHe+8l2 hf5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NDtzdJbY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rv19si3673018ejb.91.2019.11.21.21.54.29; Thu, 21 Nov 2019 21:54:54 -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; dkim=pass header.i=@kernel.org header.s=default header.b=NDtzdJbY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728514AbfKVFwX (ORCPT + 99 others); Fri, 22 Nov 2019 00:52:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:57964 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728485AbfKVFwS (ORCPT ); Fri, 22 Nov 2019 00:52:18 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 636A520717; Fri, 22 Nov 2019 05:52:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574401938; bh=SuHJO9KBBvsWwPusjwAJI4z2nSO4KEDYibgE4E+Y0e4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NDtzdJbY4BrMkC5TLNllgu+iAe1XBMCFDLfrlcwQmaoL+xEf3KcAtU/FhW2PrQDds T4l7CEvxy7ytSDiWMwqVp8OYbp45tg8lorVW16l5lm4oyhyAbL8U7Ayqzan9IclFd7 NuqSJJ/HdrSVnrhUhFwv45xepaaFV5NU3shgwDAM= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: James Morse , Nicolas Saenz Julienne , Will Deacon , Sasha Levin , linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 4.19 163/219] firmware: arm_sdei: Fix DT platform device creation Date: Fri, 22 Nov 2019 00:48:15 -0500 Message-Id: <20191122054911.1750-156-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191122054911.1750-1-sashal@kernel.org> References: <20191122054911.1750-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: James Morse [ Upstream commit acafce48b07bf5f9994a38e7fe237193d43d092e ] It turns out the dt-probing part of this wasn't tested properly after it was merged. commit 3aa0582fdb82 ("of: platform: populate /firmware/ node from of_platform_default_populate_init()") changed the core-code to generate the platform devices, meaning the driver's attempt fails, and it bails out. Fix this by removing the manual platform-device creation for DT systems, core code has always done this for us. CC: Nicolas Saenz Julienne Signed-off-by: James Morse Signed-off-by: Will Deacon Signed-off-by: Sasha Levin --- drivers/firmware/arm_sdei.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/firmware/arm_sdei.c b/drivers/firmware/arm_sdei.c index dffb47c6b4801..c64c7da738297 100644 --- a/drivers/firmware/arm_sdei.c +++ b/drivers/firmware/arm_sdei.c @@ -1009,7 +1009,6 @@ static struct platform_driver sdei_driver = { static bool __init sdei_present_dt(void) { - struct platform_device *pdev; struct device_node *np, *fw_np; fw_np = of_find_node_by_name(NULL, "firmware"); @@ -1019,11 +1018,7 @@ static bool __init sdei_present_dt(void) np = of_find_matching_node(fw_np, sdei_of_match); if (!np) return false; - - pdev = of_platform_device_create(np, sdei_driver.driver.name, NULL); of_node_put(np); - if (!pdev) - return false; return true; } -- 2.20.1