From patchwork Tue Jun 27 20:16:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 113597 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp8463293vqr; Tue, 27 Jun 2023 13:51:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6IkVyLtV5csvcxBHhSrGyDze7HZu5aXemuvpkvI57LmZrQzbqxBMA92zTNWz74XTu00C2L X-Received: by 2002:a05:6a20:1051:b0:12b:e7de:6382 with SMTP id gt17-20020a056a20105100b0012be7de6382mr1214893pzc.34.1687899091424; Tue, 27 Jun 2023 13:51:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687899091; cv=none; d=google.com; s=arc-20160816; b=FI4GhE1OSsLF9HBzLpytynFUqfEaYx11l96GXr9ZRfZH+8lOoqYDrjVjqtYeBeyzS/ vFtYW+k5fS4b2fhqdCPom9S0GccRiH4m+nIReX8JoILntVL3fUKyeTOvlfcDvIvgcVF2 nPmtH7GJwq/I4hyGC8AkiokqiWutk19QZSApWy6knKORYYcbNAMbaHDr+VtK3ZBCJA7g gQigcVGobNOIF9taMPvZzPKp6ijEjFNtcRGTLHGiUdevmpBfc5czDY+uKyOsanDrrDvI 1zjruaBF5DiUKMrv89Fv7Ob0R4WP/c8KOR+ChAsHaIFQ++ACL67pieXvp1tN2dV4b7b6 a7Dg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 14-20020a630f4e000000b005501b2005fasi7615500pgp.161.2023.06.27.13.51.19; Tue, 27 Jun 2023 13:51:31 -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 S231285AbjF0UUZ (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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769890477499483906?= X-GMAIL-MSGID: =?utf-8?q?1769890477499483906?= 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 Reviewed-by: Kieran Bingham --- .../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;