From patchwork Wed Sep 13 19:53:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 139193 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp32530vqi; Wed, 13 Sep 2023 17:58:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IED7ykezFS5ca3ZHx8bm+nrS1xUQ+1sAJeeoUZUYLBQIG5jJrkPBClcyO6u1ZFNpdI+/H94 X-Received: by 2002:a17:902:778d:b0:1be:f45c:bc38 with SMTP id o13-20020a170902778d00b001bef45cbc38mr4098755pll.2.1694653111736; Wed, 13 Sep 2023 17:58:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694653111; cv=none; d=google.com; s=arc-20160816; b=OUDVByJiRGArffB8h7fbgml8Y74d71ZqITLR6SIuLOowu7nDXEIy4WhVDYBPt7S6qV 2lFS38UJJ8OE3cUn7Pcl4Yu6WZfkupRVBOCA5sgHeRZUlS7l/TbBo4RX8ORK+xJNpYKa TvxtANHbEq6RvkzbwHaIjDF6UvT5D1iOHZC+e385+f/us0QJokUU6sXoZB4vPOwzDExf dCbFSJ5a3ueTSrnDpkia6RDssP2t1BIQhbrEri+KnGacp2VcB3wiyVQEbKZYm1loEat3 3o/rULTi/i4htYvX1ueEkrjwG5/Ttn3hL540HXMo5zHyRgmJes6R1ni4JaYvULcokuAa DBqw== 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=D6PUj9sfdyWZ+D+9KDjuBVudd8d6zNYPioxkQBvCo4g=; fh=x1hGPnZeYvyedQGDVaFY4F5NZX5OfdEJxyYqoMYIkPY=; b=ei3lrMRaCDcDFHaMrXFjbew2zsvBBp55/1Fs2T8CqZxlfaAj1CYzS6eU6xtsY/PtIa 2fnVX0DldmMGw/HEwOJV3Glf2mBb13zPkEftfJP5+eUnegnFgbhrA4njLBjFu6XfO8Az jCqEG4UO5Xl94M/nh+LZ12V0FAMmcRHVwOteTGl+0xvHVji9tG8iYNuhp+b54mYRRr6M jkrzqYh1wT+mcSIBthpirB5prngUbkcLLedc06oeTsKeZbM7wvYeW8rNs88bfUPgtZkX GG/dSuhI0itejc6WCYOC56VT2EgbjZPOZuHHHdGMhLlyFx5x+gE9UNDintxr9I8HMI7t c5sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=QXAk6thM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id u12-20020a17090341cc00b001bbc61fedafsi562155ple.422.2023.09.13.17.58.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 17:58:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=QXAk6thM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 04B09822C638; Wed, 13 Sep 2023 12:54:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232625AbjIMTyj (ORCPT + 34 others); Wed, 13 Sep 2023 15:54:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232591AbjIMTyh (ORCPT ); Wed, 13 Sep 2023 15:54:37 -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 0657819AD; Wed, 13 Sep 2023 12:54:33 -0700 (PDT) Received: from umang.jainideasonboard.com (unknown [103.86.18.170]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 6CB8D755; Wed, 13 Sep 2023 21:52:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1694634779; bh=FCHVNEv/n2Q1J9B1s0VB82C7wBBOUPiKQ1IHpgUhfXs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QXAk6thMUafYWMBT5aM0HeH5o7yc3xG/zrdSiGs/NxhFjunwUG/KrBqVMxaN4wKo7 auGWunZGl1pViUh/GQYj3Kke9ixvqvNJq70tbrrgvSYlPUygzWV8TlrcudEKDe3EyH GvaBzwbiN6Wt6eXBJQVKtt28lUk+VtSkmDPB7bxo= From: Umang Jain To: linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Stefan Wahren , Greg Kroah-Hartman , Florian Fainelli , Adrien Thierry , Dan Carpenter , Dave Stevenson , Kieran Bingham , Laurent Pinchart , Umang Jain Subject: [PATCH v11 5/5] staging: vc04_services: vchiq_arm: Remove vchiq_register_child() Date: Thu, 14 Sep 2023 01:23:54 +0530 Message-Id: <20230913195354.835884-6-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230913195354.835884-1-umang.jain@ideasonboard.com> References: <20230913195354.835884-1-umang.jain@ideasonboard.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 13 Sep 2023 12:54:45 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776972581115576545 X-GMAIL-MSGID: 1776972581115576545 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 2da470740cda..5eccf5b277e5 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;