Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp9419327ybc; Sat, 30 Nov 2019 07:02:00 -0800 (PST) X-Google-Smtp-Source: APXvYqwgCXObZwjNw9uHXCvDD2VyiidyRUlI9mQzC9B6kau2jg7HCyvcwlGfeWD/3HgmoyKyUlzs X-Received: by 2002:a17:906:397:: with SMTP id b23mr13078975eja.234.1575126120657; Sat, 30 Nov 2019 07:02:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575126120; cv=none; d=google.com; s=arc-20160816; b=oYPYSP95Oi4eXeFAGCWjhHPS8zno90prp3M75XwAtDwpGT8F5C1axxykeMcDLg2Esl BfptfwYPuu8EfCiZC5GqLF/zj88H/1eqYabco+YuHAvNIGZdfFpNIdL07tplO/3iK/10 ETf5vSPMhxFChiCencatK2JmRTMO6zUsBuuPvqJjnHjb2boKA1NmQ0qrXSRT6wUDfS75 mCnTIH8uGSlxRt8fZ6ZIOhbni76KJ4ju2EQupWj/EB8JGaM2h4srXMgaOt6QGL6lopvq 01E+WSO/YJINp2tQqVyUCVx6FUpgcvHk1dXn4y8YFl8BL36uX0Uw2hJVlRAD0+RNImFO Kvgg== 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=TvmFsbPfOa+mv76uPLkgNY/Uv2Lmgpor1GwCekjIwTs=; b=fg9xEQ+hn5edxKqq8wKaYAK/WvOVNFAwhy39P9BlCU7cbWHmgJTHzOGtO0vAYgkgPb HfHONF0KqxO8YZtn+utQ+AFe05/GmQyhNm7iJtQII86nvRsgilVdX/AXxJobaZ63eait u9IoxWKMkJnVwGzVJRDKQyKMY+1rKhgGF8NwJrdT4l4zJ3fv2p1CSKNOzuzqpysb6wHK JZrVpqwHarup72yuMqzxclf47YUQzuavvlGZQ2J5OlU3GfLS1oVxvtOYo6VWMpLUxNvw lqbDrNrGm8E9cE41ZjCP9+w670uMkQIZpsfGqdASJ1tbfJZi8/pdDx8gy04/mjaqluCz 5xvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=C7r7GQYf; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n12si11211084edb.376.2019.11.30.07.01.35; Sat, 30 Nov 2019 07:02:00 -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=@googlemail.com header.s=20161025 header.b=C7r7GQYf; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727240AbfK3O6a (ORCPT + 99 others); Sat, 30 Nov 2019 09:58:30 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:38000 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726376AbfK3O6a (ORCPT ); Sat, 30 Nov 2019 09:58:30 -0500 Received: by mail-wr1-f66.google.com with SMTP id i12so38549372wro.5 for ; Sat, 30 Nov 2019 06:58:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TvmFsbPfOa+mv76uPLkgNY/Uv2Lmgpor1GwCekjIwTs=; b=C7r7GQYfN+SJUSYh3Qq2WfTdJVSBL3+1F8fd6dbxvbCL2OMYK6GGFJtYy5A6X0s3As PumjRIJhiTD9ofDKJl7JKQtr7MvPOH+hWPpKuUO0iV+a9DiDHMYwdONIcyTAJC31YgWN XWfmNHosgJwBMCZBuSSWTQrkyc/AfB3J0BFsWww6ofIltCZNr52RfOnynhAcdb8CPhMa AR+ePx7YMX9L6BidWDsGNW3HyIExyOtnahzPcd6pD/aMSm8YY1HSxIBFA4DBFfLejPtJ xJgfjNO8ST3SZLIy0Hc+aIu42DXB9E1Au8K1/a746phe8NWoFPyvDKxtDLlS6chT6Con KLQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TvmFsbPfOa+mv76uPLkgNY/Uv2Lmgpor1GwCekjIwTs=; b=knlTUvCduHTcOYu6r6UHE/gNh9EwZpHvyasMMH5OOTbe79CCcgb52dnCvoxVK4uK/k FK0f7Boez40vWQRNytGadKFR0RD7umzow4Tn8soPXza7Ws8wowl30NIeSFHWhoFMiz1T oR48lmUcXJopN1eEAEMPg+9+8Ld61selx/kP+bJpB8p9G5pEAciK32nY+IFoOte7XkUa jMrXn6DI5hwKpDUrNZ4fOA9rAoj9nMD4Rrk7OcXq01aX9j/K9AJECYs8a80c1K9WbuiR 6EDVxs7V1Ysjtf8JduBlkErZjxiith+fx2+sYrchxZw59qVd4OyuE6RnXJoLvjBD2IFK G1hA== X-Gm-Message-State: APjAAAW41iKJnDMe9EdD2IjpyeUqtfW9sKBrZFh75fyBYvy6SrisMYg6 6CjynjYiJd2ntWUb86SOGCs= X-Received: by 2002:adf:f5c2:: with SMTP id k2mr59575140wrp.118.1575125908498; Sat, 30 Nov 2019 06:58:28 -0800 (PST) Received: from localhost.localdomain (p200300F1371CB100428D5CFFFEB99DB8.dip0.t-ipconnect.de. [2003:f1:371c:b100:428d:5cff:feb9:9db8]) by smtp.googlemail.com with ESMTPSA id c9sm3510202wmc.47.2019.11.30.06.58.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Nov 2019 06:58:27 -0800 (PST) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com, narmstrong@baylibre.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Blumenstingl Subject: [PATCH RESEND v1 1/2] soc: amlogic: meson-ee-pwrc: propagate PD provider registration errors Date: Sat, 30 Nov 2019 15:58:20 +0100 Message-Id: <20191130145821.1490349-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191130145821.1490349-1-martin.blumenstingl@googlemail.com> References: <20191130145821.1490349-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org of_genpd_add_provider_onecell() can return an error. Propagate the error so the driver registration fails when of_genpd_add_provider_onecell() did not work. Fixes: eef3c2ba0a42a6 ("soc: amlogic: Add support for Everything-Else power domains controller") Signed-off-by: Martin Blumenstingl --- drivers/soc/amlogic/meson-ee-pwrc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/soc/amlogic/meson-ee-pwrc.c b/drivers/soc/amlogic/meson-ee-pwrc.c index 5823f5b67d16..df734a45da56 100644 --- a/drivers/soc/amlogic/meson-ee-pwrc.c +++ b/drivers/soc/amlogic/meson-ee-pwrc.c @@ -441,9 +441,7 @@ static int meson_ee_pwrc_probe(struct platform_device *pdev) pwrc->xlate.domains[i] = &dom->base; } - of_genpd_add_provider_onecell(pdev->dev.of_node, &pwrc->xlate); - - return 0; + return of_genpd_add_provider_onecell(pdev->dev.of_node, &pwrc->xlate); } static void meson_ee_pwrc_shutdown(struct platform_device *pdev) -- 2.24.0