From patchwork Wed Jul 19 16:44:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 122749 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2598311vqt; Wed, 19 Jul 2023 10:36:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlF3MxE29gnFQMx/JM8aFBPdbdLhErSyyOm44r+W8DvapZGb8faA44iQ54RMC4Ck0S+w9bI5 X-Received: by 2002:aa7:c595:0:b0:521:8a13:644a with SMTP id g21-20020aa7c595000000b005218a13644amr3337913edq.23.1689788196849; Wed, 19 Jul 2023 10:36:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689788196; cv=none; d=google.com; s=arc-20160816; b=m7Sx9C+EH9AplnuCPdQmmg/gRPW5po30sXh21ghguh+AHnZKeXy4jIO7k4vzekZxi+ 0HIxG+O52/NKi15lG6uyB/Yu2WUFrVJDJgLwBD75D90i0E4hZM8urnaMv1W+/tintN0W kyiFVrA4IIQuwRjkCgcXyTcNT+5SzVVA9csR5DRbZJ00Vft/XbkoUcf/C7g/Eh7KNxVn PpFsD/GH4YRVPhK1dFMC0YqovX51FFIWl7WRqDug/IZtKUnABtZj5bTzsmfxA93/FbGG 5Lmcn6QfeVc4AK07axlpJzOrAV3A0uNQ+vLVnbssIlnR4GhvEyJyydDXydECQro0afmt 2kLw== 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=AtDCPmin1vnQCPATG2cI87sQROxH7W7LrP2wKdOqIzI=; fh=HOFam38REw6BIxvQyXL0jcX3gf57D0OJSEWCuf65U0M=; b=XhNS0lSulUvuzy/CNeOgUApGwl9aGEdA8vEoc06byvdSAV8YMPgi8SkBXJkYT4tWvB TkqN3VxE76z2BS1UbGvcDdAV+WSQQqsrR/PLtup83W33fMfxh6/jwlsPns3IAKLzNgLG EbEYJGCIMnKgXqJtxB7eNoxg76LqMRanb9Sfqb4g3zzZ+kUCxE7feuPJWhWTg6ZHJZUT vNGFZIHanobl+z9chiefV4b+PcnYfSfjyfECcByz+UQV30RxnDgyos91luYYMeNXGw09 1hLklsl9k3Y3qL3JYNJ8dHTaDy3pBo4P5gPSyxcYqZqqDhvqQrg2BO0ECwK71wsUpO1p btPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=SSThdzyS; 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 d1-20020a05640208c100b0051df58751c4si3359090edz.134.2023.07.19.10.36.13; Wed, 19 Jul 2023 10:36:36 -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=SSThdzyS; 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 S230323AbjGSQpV (ORCPT + 99 others); Wed, 19 Jul 2023 12:45:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230354AbjGSQpK (ORCPT ); Wed, 19 Jul 2023 12:45:10 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32865135; Wed, 19 Jul 2023 09:45:03 -0700 (PDT) Received: from umang.jainideasonboard.com (unknown [103.86.18.219]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id B3F7A3382; Wed, 19 Jul 2023 18:44:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1689785047; bh=LOGzH69wKz4mW0XwcNxrfPFY1YNzGADoi/QhGY3s8Qc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SSThdzySp0pK6IXyo2UpqQuUuFLTcbbLCwnTLwtL9bgLVApWhFAroSsXuWDEZ7gF7 XpPCpGcs33T7HiguQuLpHfI/W+i7oDY/6WvEZAMhXJZp+SczNfHgs+ZpdKeGnNfjVa tnCzwpE/GQ3kWa1zlOt1H16bYZRX1zRLBBmiGRpg= 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 v9 5/5] staging: vc04_services: vchiq_arm: Remove vchiq_register_child() Date: Wed, 19 Jul 2023 22:14:27 +0530 Message-Id: <20230719164427.1383646-6-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230719164427.1383646-1-umang.jain@ideasonboard.com> References: <20230719164427.1383646-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,RCVD_IN_DNSWL_BLOCKED, 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: INBOX X-GMAIL-THRID: 1771871348191043127 X-GMAIL-MSGID: 1771871348191043127 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 f7c2dce5ab09..f18f0ebee60b 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -1776,28 +1776,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;