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: 9964333 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B9BA6602D8 for ; Thu, 21 Sep 2017 16:51:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC41B2956F for ; Thu, 21 Sep 2017 16:51:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9F0132959D; Thu, 21 Sep 2017 16:51:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 146ED29603 for ; Thu, 21 Sep 2017 16:51:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751842AbdIUQvx (ORCPT ); Thu, 21 Sep 2017 12:51:53 -0400 Received: from mail-wm0-f54.google.com ([74.125.82.54]:45396 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751803AbdIUQtq (ORCPT ); Thu, 21 Sep 2017 12:49:46 -0400 Received: by mail-wm0-f54.google.com with SMTP id q124so3600567wmb.0 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=tn9gqnhnGA5r5h/L191d+qhswgiW7Ev/v5f/jqIkt9syG0HLTqapFYobT3NIqZBQkK 7q5nDSzoAv/CRqHzs5VjQPQzIpq1WsxKBhEBuZpQBmt0MG6QRcAH4CIpGNZS/h4RuXux R+BN9FI5tY8LbfWFTtKnQaqn0vLb+SBP5t8COU+NJM03tIj4WdmyP+VdRqZOlbRBTVlG oPE1QClnFU5rKzTCUjZSD9GSreauccC4s3r22yQYA03JwmUZspJ40czhnCiEeffQfcsv 9sil6Sofbg2kuuDybIc44Rfaaeqsp1CyEmOfptG3cc5Qk/bFOqXjguX8X2GLLWbnZM4W 8aJg== X-Gm-Message-State: AHPjjUiR/KGBx+uPbbfoLeCdEBTN5H+Y+p/msl+mxQ7yGepQQ5y11J6M iz2XqXSjjvk38XyB1uzUE+LNKw== 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-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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-clk" 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; }