Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2697626pxy; Mon, 3 May 2021 06:10:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWpwhxvcVPqqCAV9BeXc8nUwlzk66xonxvRs+A+xyE0KaMGQXqKqsUQESUlPOwPGVQc/Ap X-Received: by 2002:a17:90a:4a8f:: with SMTP id f15mr21690168pjh.19.1620047429636; Mon, 03 May 2021 06:10:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620047429; cv=none; d=google.com; s=arc-20160816; b=MuEEx8nIw+uEUSOTs8QEi+ixHRYZPx/jBt+qR4u2fDUG3W7VfZHd4BIcHm5Jhe9NaC jCcw110Ynkfnms3QW85N9TXl/FdYDoIJyAEkQJYnP5w+zUINzTq01a7sF71wlUVnt74+ x9nDhVGIdTQoCyVaTZicpXpuD/BV4K0LbmyP+gs5e4oOltJsXk1Jp7PDetjjwhBMAop6 pgdeBsbyYenz6z7sQ0Qx2NdatZTAntXjL1kzO9VE3bTYQ96VqNQVTSLCeWgeQNHZWi9G kczRyOaZ8I/FKteIAXkRzb5Q+Y2+MtDncq3BUaYUO3mMlhxNavm9kap40Nh25wZw0MWG 6/gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BqHTJao5cPi+PjKAvXCEMZJ297FdicaAboL3lYnHrno=; b=RADZyrC6XWN3aYRR+sWKjsac/X27UKF1Voznq1NjkfmGi1beWamj85pRVZ4OdsULmx W+yeJROomyMipDEbj8vn0/EQ705nmjeb/UkpqczHhno3E0KzUw65JS734rTvM3T2t7iL TCcXbIMiq/ybrsboZtkl8gXBu6DgjUaiIW1cOgHky6/9u2ClcRmhT4SOvIX8ss6f9ruM aY3uk5koxoSzpbgPrHtx4XKgg/19uw4jT6JcMHbKHx22R6/RLuM7j6FI2a84V4Og2LGN GPj/XH3SjTH9nvnE9WPk76h6OBYlTDDr4p3erGQpqvaezZbPHPAT0rEWksKk/8+t1Xrs JJrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MieU8ckE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d15si15127346pgk.293.2021.05.03.06.10.13; Mon, 03 May 2021 06:10:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MieU8ckE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234100AbhECMCO (ORCPT + 99 others); Mon, 3 May 2021 08:02:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:36086 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233946AbhECMBW (ORCPT ); Mon, 3 May 2021 08:01:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2A4DE6127A; Mon, 3 May 2021 12:00:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620043229; bh=dFYpuYjDUBXeJs7YluOgyYgaWUnawwVxM+hb/l4y7sc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MieU8ckEvQa8LbFnFq/E8h5MJuh/4cYauPWkimPhz0i6zIKUQSx7fuTKfOapMLDI0 ylUNo8OpptJ8YtM12hhiDDva5GVCzywon+qWZm6rMIRkCiR4SVY9Ty1Ga8CS6OuPsm DxtPMOYSQs5xnnsnczoONIbvOwKtv6NECtAGS1jE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Aditya Pakki , Sinan Kaya , Vinod Koul Subject: [PATCH 50/69] Revert "dmaengine: qcom_hidma: Check for driver register failure" Date: Mon, 3 May 2021 13:57:17 +0200 Message-Id: <20210503115736.2104747-51-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210503115736.2104747-1-gregkh@linuxfoundation.org> References: <20210503115736.2104747-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit a474b3f0428d6b02a538aa10b3c3b722751cb382. Because of recent interactions with developers from @umn.edu, all commits from them have been recently re-reviewed to ensure if they were correct or not. Upon review, this commit was found to be incorrect for the reasons below, so it must be reverted. It will be fixed up "correctly" in a later kernel change. The original change is NOT correct, as it does not correctly unwind from the resources that was allocated before the call to platform_driver_register(). Cc: Aditya Pakki Cc: Sinan Kaya Cc: Vinod Koul Signed-off-by: Greg Kroah-Hartman --- drivers/dma/qcom/hidma_mgmt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/dma/qcom/hidma_mgmt.c b/drivers/dma/qcom/hidma_mgmt.c index 806ca02c52d7..fe87b01f7a4e 100644 --- a/drivers/dma/qcom/hidma_mgmt.c +++ b/drivers/dma/qcom/hidma_mgmt.c @@ -418,8 +418,9 @@ static int __init hidma_mgmt_init(void) hidma_mgmt_of_populate_channels(child); } #endif - return platform_driver_register(&hidma_mgmt_driver); + platform_driver_register(&hidma_mgmt_driver); + return 0; } module_init(hidma_mgmt_init); MODULE_LICENSE("GPL v2"); -- 2.31.1