Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp9416039ybc; Sat, 30 Nov 2019 06:58:40 -0800 (PST) X-Google-Smtp-Source: APXvYqx8n5BKgW7WGRS7J9nTJYKTIf80sWXKr4Ga6AbIcIofeatBH9zKCgNNH90/a7PJzQ43I0hy X-Received: by 2002:a17:906:49c5:: with SMTP id w5mr52351323ejv.21.1575125920219; Sat, 30 Nov 2019 06:58:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575125920; cv=none; d=google.com; s=arc-20160816; b=MTHMAlADWeKmKEJXySOlzvBJBKqnYX8kr4mUB7WDbknKsgSasKkJ3Wca9tRP1y3ibf b08D5a1n+5K+PbeL04pwcKh3vbOGHXK1Cg2Qt8Lv+qKG+aMweN47SVXQh+0RShla0M3L /GKjnDTaKPSVhE7yZxaH8fpVUg+TYTmQNHHXv+4ZUgiq7/+APGYCmRW2WOYcy+rGMZOJ CDwwaYJxAwUuBkEBTFwvqXRtupJ3/nnB1MRPLLKF7z5Y416NyKfkvc1pft7EyHTnsX5i +iMYgDxxfqSv5rYFer8sOhtUzLQKw2f1ID5RDUOj2A6pRCqDZwqtjaFHTHzOpWm13+Y+ 8srA== 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=pRFEHmtO7tkHT56GLTLHkQJ+b82fVZ+S3hEnTgX6u1+xuzaJouvMvJVYZI7XDUAt/D 4Y7XMtcZ63XziCSEAPDOuxL9KEtnsbbgRFOSmVnN3h5hnup0H8XStHw8K55FTb3Tnvm9 hDv7okN7Qv3a1Zx7szXWBM2blkNUJNxKtEXFO+xDDFg4zP7/ROyONbriN0SSncz34Fdp MV9+b0v4EpTFB3gTZDHb+7EiKX5gUwQlLh5Wv9us2RG10GinWEBVfK9id5JADBHQu2lV ZCLBXmtw/zC+oTXEUREhu+6XcJiNv7/8HS9RzyR5Md3Iy1wERutX4+YyDyP0enRnfFBJ lShw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=M2OY4GgA; 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 o14si20950072edi.116.2019.11.30.06.58.16; Sat, 30 Nov 2019 06:58:40 -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=M2OY4GgA; 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 S1727103AbfK3O4e (ORCPT + 99 others); Sat, 30 Nov 2019 09:56:34 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:42384 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726376AbfK3O4e (ORCPT ); Sat, 30 Nov 2019 09:56:34 -0500 Received: by mail-wr1-f65.google.com with SMTP id a15so38457029wrf.9 for ; Sat, 30 Nov 2019 06:56:32 -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=M2OY4GgAq/acdIl+mLclGxdW7OPPxsfPVW6tx+1uxT23OQtQ+pBYSHIgH39w4Reb6x a/hBY4u4JfiMV+PSPDdI6/tDdeYyb21nQ/Yzehie+IZ50SxNRy3IhcuT87SaJ6ORtylG aX2NVXNKAgmzvpFqdjZR2D/aCTwN3yqwsVVmaomo8/MQJZGbjbRf937V0PB/XWHhS7yo 4te8IW4rw8JkK7CwxZt8AtozOgfmBCDLOLyD3FktNhWtTyEn7YpdhG7l3iqPgT8NvL5y v4VofhZEft5rujuTS3aw2ovXWKeU/SDDNQXNmTwEkmwQW8azQDN4QKChGxa7O6j4CYLZ AMYQ== 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=jiUHoXu6iP4irqa1XJDnsMe6uaxjoPb58wkFlwVuA56U9EkpHVEnuyIJ8Q4XAXfU+E xj1+aRuVfoeR+IsQaCCox3ZxWsa6j2Bf1KAg5Aqj7Wtnii43DiO9y00GWDCkPjoMCtCY yYAMXaOfO15cwb43DKKX7Cqnt5h4p05HJCxZo+ICfJcd6Ff/KGkmedLm1WjymHxWMNmU qNfpcqFxQZtJEP5gOliihUpMfHvjH2iDJhC45Y6TxGf3EWQ++NoPu9oMykalGDwt5Aip ecQOJSWpey0RjFfxvCk8BBP+nRnfhkc6WKr0rxNgliPi6YFs5ThgE/46/vJOk0INdknp 9qOw== X-Gm-Message-State: APjAAAV0f8TD10qiOjXJI83J7dRvXey9uAWSLB1Z2RztLkFV1wnaQPTG yfKzLOvXCU2/hzhRdDc06hc= X-Received: by 2002:a5d:5704:: with SMTP id a4mr39371160wrv.198.1575125791823; Sat, 30 Nov 2019 06:56:31 -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 b17sm7163391wrx.15.2019.11.30.06.56.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Nov 2019 06:56:31 -0800 (PST) From: Martin Blumenstingl To: khilman@baylibre.com, narmstrong@baylibre.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Blumenstingl Subject: [PATCH 1/2] soc: amlogic: meson-ee-pwrc: propagate PD provider registration errors Date: Sat, 30 Nov 2019 15:56:16 +0100 Message-Id: <20191130145617.1490233-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191130145617.1490233-1-martin.blumenstingl@googlemail.com> References: <20191130145617.1490233-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