From patchwork Tue Jun 20 13:41:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 110516 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3681892vqr; Tue, 20 Jun 2023 06:56:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7cgaYcro9Um7JJGHw3BD9Cw4IuiYoxCFnBPK6Er+nHUiMIDswUXFDFtbErcFbwbn8fWfQm X-Received: by 2002:a17:902:c101:b0:1b5:4623:2220 with SMTP id 1-20020a170902c10100b001b546232220mr4673312pli.1.1687269370316; Tue, 20 Jun 2023 06:56:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687269370; cv=none; d=google.com; s=arc-20160816; b=Fm5gTtX95xtVoYzeuCN02zjcCG7ZHxHz3eisTVAGde9CsbewDHFlhSO8HpxsJo84// +HUDdSo4n6O982clak8MMbbRIQY1vzidg36AoHsW/uhvyDYEnKoQNeo+2KkG0Xmv2Gfs B96WsdXTM78/bR+HmnBKjFNqChXmybXsEZG1OOptamozCB6l9uJdFZfLqPCIZv1BQotB 1hI4wg084SQXDmbqGlMoHjB0kxyaIRfDADPPKhDW+h/1gyf9UNzJLPhxfCz0QstOIeYF 50Jy8FPMh861A0L4kLYzxKF4PIiwk2Ufvc8i86dHtXPdhEs6tSOrTSnpjpiuLsKS6Q1u euiQ== 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=; b=VgkIRW8ChdOCwNM1dk6edjIE4QGsptq/AqNshpj5eRko2gtESLg/sbIHKdldYxuR9h UUTuxConEo26OhUZCnPvaZHPu0jT1uFlHiqlmtzboUDw3iev02oVWxupC7o8ZHRTsFI7 nKoCkABtW4V/EvzonflQ3pIcYyzCgMoPssXFAKn+4oMwMjgc3Fjg89H+VWSA1Ui+6WCE YsCNqaofv0kLQ++pcRi8jULiLmHa5oC/5DaHQNTXKsKx3RA+7RkPcbxbXT7QGDb1Kw+e RK/Kwsft9szmQDOIIyHdcY6ap5lZIek7A5fEE2XO2nBBQ65bGUA+/tPee2VUAFE7GYpB lmDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=WuHNcBPi; 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 y5-20020a17090322c500b001b67b4f719asi2134116plg.438.2023.06.20.06.55.56; Tue, 20 Jun 2023 06:56:10 -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=WuHNcBPi; 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 S233030AbjFTNmo (ORCPT + 99 others); Tue, 20 Jun 2023 09:42:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232963AbjFTNm3 (ORCPT ); Tue, 20 Jun 2023 09:42:29 -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 55C38E72; Tue, 20 Jun 2023 06:42:26 -0700 (PDT) Received: from umang.jainideasonboard.com (unknown [103.86.18.208]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 115812907; Tue, 20 Jun 2023 15:41:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1687268510; bh=aTEauMEul+vJmNEkdf5DceHvA7fGrWLQch/ls0rhujQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WuHNcBPiGQiLfIWnbBgjQGSSYBkNmwFtl7mlbopXNlIqdBvV5FJFlYj9rfaeF52Qr rb18jihoh9yOMgGQRcrN5AzPAW1O+VYtQEBxHXDTpy1Ln2hg8ttvNNzNBwGwd84Lo/ TqGJtFHr6NYYsKf7ULY5JLw83b2iDBQ8aogyCvYk= 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 v7 5/5] staging: vc04_services: vchiq_arm: Remove vchiq_register_child() Date: Tue, 20 Jun 2023 19:11:52 +0530 Message-Id: <20230620134152.383569-6-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230620134152.383569-1-umang.jain@ideasonboard.com> References: <20230620134152.383569-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?1769230166940719579?= X-GMAIL-MSGID: =?utf-8?q?1769230166940719579?= 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;