From patchwork Thu Sep 21 16:49:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georgi Djakov X-Patchwork-Id: 113879 Delivered-To: patch@linaro.org Received: by 10.80.163.150 with SMTP id s22csp2093406edb; Thu, 21 Sep 2017 09:51:53 -0700 (PDT) X-Received: by 10.99.114.29 with SMTP id n29mr6366990pgc.258.1506012713808; Thu, 21 Sep 2017 09:51:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506012713; cv=none; d=google.com; s=arc-20160816; b=I+NDRq1sSw21+sxnoNzHuKr8HiHwCWBD/AGKI2ibE5tWsR0fnmw0PwlrbUZJxi7iDA h+0elQ9HvM3Rzdlqm23+/gzv8aB1D3M6hezl14F2zFy78sFKna5cQoZHxCChtw8mUf8/ HSIfxT/aKntwy1cDlv9KYGNW6U0hfpVD8SBPAvO1CTv+adJ/0MXg19vxRPmAJs77RqJ5 gkALJWVA64/Ufruol4YLYchlHDGjMUDhuTRZEnN86d9Fo9U0J4FqyX15RwQUPzmsauMC NQ1LtsCKZGNktm/t+TDqC6f4wNVY4tn2MrOS0/laRHGGKmHeg+wwe7tkAKRSd8YQ2Wfj iMkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=din69kHCa2asQJOnK+z9FFhotcqjH7OqN04majLkU6A=; b=rTRVIPypP80kJQvTMMWUVwqCfDzq22FhSvfur0l5tJOH6DI61wwgmFa5igifcwmqOn VL87XSW7f8p8Rn7N98ABMIB6VD8DJvWI0BxD8m9p6ntKu/fwTefCdEOWjKmqc/KOqPLN qhNfbkoyI8H94bOUK0Efdwa0FBTQUiZMmdtenLGgb+KkL/YDsW6+ngF4F2NiKftVqmEQ HNbyuTsyNdDJ1rWEmVvGZctujHAMmfRZS8fLOo0TDxPPWAu/+pm/xIVo3KdFsswTSstu FKqlPXCNnJDQQnuNcgO70igg/SrrJ94ukKf3KhG3q9FTP9eHB1pPFOjHvCfYc97mda2T +Wdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=h6e1N/bQ; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u10si1284797plu.483.2017.09.21.09.51.53; Thu, 21 Sep 2017 09:51:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=h6e1N/bQ; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751666AbdIUQvw (ORCPT + 10 others); Thu, 21 Sep 2017 12:51:52 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:49775 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751794AbdIUQtq (ORCPT ); Thu, 21 Sep 2017 12:49:46 -0400 Received: by mail-wm0-f45.google.com with SMTP id r74so3553369wme.4 for ; Thu, 21 Sep 2017 09:49:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HWPALzaEw+MV/cs3tp3Dm/2dXx1idClahXLhiX+d//g=; b=h6e1N/bQut09/PwZDDgoYXq3kURt02ckrndESlj8AMFFlLcyEkZVK/AlghuOegK7pL cFtyiCilOuXdSzuKMhDKvuAh93eB4iQp6oXRfIxjr/WgnOtw0H+D4AaFWgesmklickGZ CC6cYVolPqKDfnWkNiwP/A2JsnmlFrkPwQbss= 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; bh=HWPALzaEw+MV/cs3tp3Dm/2dXx1idClahXLhiX+d//g=; b=U46DIuGQQ6pDZqa3nrFdRi0b1s+XkY/ixkG/jMzAxTSFFzAfLbvlgg9q+SUqisTtnx ByOtauxInu1LYhgFmYa5+tWUjIkaQfD9iJ40pY0GWZ1olj+XRIz2STLJaFCyRViP2VGw geTLVPlq2rPr+e5BGuoAVKjiT7c8USFXrjuc3Bzb/qYmm3G+t09AaqBqpQohnWHq2I+M GfuKG+hTYm+G9ACgr5Id+4IkLVrVvzeqlOicUTW6omdmiWmFBSLF1uc5F2E8eAVJtXQL 0BleMBuqXb/U9ati+GRw0WbWpPIYJRemzBF3uaS0/f8Edo/vQdcaXPPkud+xSVksMHKN EsLQ== X-Gm-Message-State: AHPjjUjuqgUV3dDiCG049oV9WylS0TtaqK9n6IFcdEHOvaugpvOe3zct 7HVTaKYDeLtjVpOF/rXwjrZ7eg== X-Google-Smtp-Source: AOwi7QD0XkTXF+267VXhCX6TyZbp9bMhtg7v49J1Jx37lOpLyRcxx4FkibbmYJliPDmF8LZVP1XX4w== X-Received: by 10.80.195.10 with SMTP id a10mr1863836edb.276.1506012585349; Thu, 21 Sep 2017 09:49:45 -0700 (PDT) Received: from mms-0441.qualcomm.mm-sol.com ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id i16sm993311edj.29.2017.09.21.09.49.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Sep 2017 09:49:44 -0700 (PDT) From: Georgi Djakov To: sboyd@codeaurora.org, jassisinghbrar@gmail.com, bjorn.andersson@linaro.org, robh+dt@kernel.org Cc: mturquette@baylibre.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, georgi.djakov@linaro.org Subject: [PATCH v9 2/7] mailbox: qcom: Populate APCS child platform devices Date: Thu, 21 Sep 2017 19:49:35 +0300 Message-Id: <20170921164940.20343-3-georgi.djakov@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170921164940.20343-1-georgi.djakov@linaro.org> References: <20170921164940.20343-1-georgi.djakov@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Register the child platform devices to probe their drivers. Signed-off-by: Georgi Djakov --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 5 +++++ 1 file changed, 5 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index ab344bc6fa63..fd9055eacf42 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -98,6 +98,10 @@ static int qcom_apcs_ipc_probe(struct platform_device *pdev) platform_set_drvdata(pdev, apcs); + ret = of_platform_populate(np, NULL, NULL, &pdev->dev); + if (ret) + dev_err(&pdev->dev, "failed to populate children\n"); + return 0; } @@ -106,6 +110,7 @@ static int qcom_apcs_ipc_remove(struct platform_device *pdev) struct qcom_apcs_ipc *apcs = platform_get_drvdata(pdev); mbox_controller_unregister(&apcs->mbox); + of_platform_depopulate(&pdev->dev); return 0; }