Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18232647rwd; Tue, 27 Jun 2023 13:48:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6kOyc6QSRQ3bQC3dMShviq2HbYbsV5qDySpUa39Uqi3h69SVIIFepynCJBefYVyOeH8cSP X-Received: by 2002:a17:907:2bdf:b0:98d:f953:f473 with SMTP id gv31-20020a1709072bdf00b0098df953f473mr8037001ejc.50.1687898914734; Tue, 27 Jun 2023 13:48:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687898914; cv=none; d=google.com; s=arc-20160816; b=N9CIVwozPLK+xN99jHcTx0sAUThCV/v2qo68Xx9AoPoJGzeDPY1/InWIqTbBGo9oBB mVoNt+m8RTYPxJgaVVXsZ1osX+MWLTX9r5xvPDH0Uv95GRKNXSPF8daapRV5ewOWdxVo Ms4ZbBmuLeWooTZTLDiBsE5UEe8uat98iluLmI7B3s12RGSf4QOzMsn0+AHsDm0S95Xf gV3lb1WHXQYPNrcU7in9g9sBvkOrxdmMv42bbF0N3N3MLvmYKcoKNfo6wQzhAcwa/gZG yHyaNMKwqs5DGIJReAIsh2MSbfIAqXzYirYhSTQnMgc9CBK2DaOUsFtsom30WzzNKS3N UZhA== 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=oJcf8lNeC2UG90Q1WPSJ8fbswFLgM7j6XxhsUMq/01I=; fh=KJ7fz4phEMuOPL/5CIrq/GEqblJHB3UXSqcptreppbo=; b=j8hzDS8c9OeA+Nxrl3M/v1c8VXg4XjKF6GUgva3I8JiSN3JnkHgtKkgqUSZClSpkWz Xjgpa/ViRKd5907uP45D2MD4yxWvxJJImdKaInDk6uhEyisY0N4hmQw2kDcwxbVtO+Nc 6qdyxMG9iYVF+0+aGxFHUryoa0AMbmwVuaUfAV6KGaPDJL5PsKx0ezSD9bn5kFis3SSM o2dC7kSgzVZQOuqqEUAHjxjPTJ8izh8ieKt+5MPOp5chk9fQ73WGCebfrY+xUSzgJv3j jGQNmUe6peNxhmFzRdCu3wPmuBYn36BqD+2LB80jC6FNAJqMFD/utIZ4cfXh50uUclH2 AmpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=jmxFLJPj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g27-20020a170906395b00b0098e3591d105si3760311eje.405.2023.06.27.13.48.10; Tue, 27 Jun 2023 13:48:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=jmxFLJPj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230428AbjF0UUZ (ORCPT + 99 others); Tue, 27 Jun 2023 16:20:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229593AbjF0UUU (ORCPT ); Tue, 27 Jun 2023 16:20:20 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DE222D58; Tue, 27 Jun 2023 13:20:01 -0700 (PDT) Received: from umang.jainideasonboard.com (85-160-38-115.reb.o2.cz [85.160.38.115]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id CC8953212; Tue, 27 Jun 2023 22:15:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1687896959; bh=aTEauMEul+vJmNEkdf5DceHvA7fGrWLQch/ls0rhujQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jmxFLJPjZ5HrCNXMwM6MWIbUGG4j30l7LhlebFosbJpl6BeB1IfvveRNFXSvZbn7K 63sVCA0ykeCRxFDN2tEIW2YD4ZIxE1in7uVNNzE1HvljgAv9xMKKhgltAn3MzRnxmp sjayfkeI9Ns5Ld3MIe28dBs1h+kIRUNa+Wh6JqQc= From: Umang Jain To: linux-staging@lists.linux.dev, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: stefan.wahren@i2se.com, gregkh@linuxfoundation.org, f.fainelli@gmail.com, athierry@redhat.com, error27@gmail.com, dave.stevenson@raspberrypi.com, kieran.bingham@ideasonboard.com, laurent.pinchart@ideasonboard.com, Umang Jain Subject: [PATCH v8 5/5] staging: vc04_services: vchiq_arm: Remove vchiq_register_child() Date: Tue, 27 Jun 2023 22:16:28 +0200 Message-Id: <20230627201628.207483-6-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230627201628.207483-1-umang.jain@ideasonboard.com> References: <20230627201628.207483-1-umang.jain@ideasonboard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org vchiq_register_child() is used to registered child devices as platform devices. Now that the child devices are migrated to use the vchiq_bus_type instead, they will be registered to that. Hence, drop vchiq_register_child() as it is no more required. Signed-off-by: Umang Jain --- .../interface/vchiq_arm/vchiq_arm.c | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c index 75da37fa6372..3c52b09c49ea 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -1778,28 +1778,6 @@ static const struct of_device_id vchiq_of_match[] = { }; MODULE_DEVICE_TABLE(of, vchiq_of_match); -static struct platform_device * -vchiq_register_child(struct platform_device *pdev, const char *name) -{ - struct platform_device_info pdevinfo; - struct platform_device *child; - - memset(&pdevinfo, 0, sizeof(pdevinfo)); - - pdevinfo.parent = &pdev->dev; - pdevinfo.name = name; - pdevinfo.id = PLATFORM_DEVID_NONE; - pdevinfo.dma_mask = DMA_BIT_MASK(32); - - child = platform_device_register_full(&pdevinfo); - if (IS_ERR(child)) { - dev_warn(&pdev->dev, "%s not registered\n", name); - child = NULL; - } - - return child; -} - static int vchiq_probe(struct platform_device *pdev) { struct device_node *fw_node; -- 2.39.1