Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4938371rwb; Mon, 21 Nov 2022 14:09:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf6YwR8+/cbAmTp4tu+Ndndlctet1+KlCkWdAujfLFDMeO9p5hvabgr/Z2Bp/DhLagzp9qr2 X-Received: by 2002:a17:906:234a:b0:7ac:e7b1:20c8 with SMTP id m10-20020a170906234a00b007ace7b120c8mr4534208eja.68.1669068586252; Mon, 21 Nov 2022 14:09:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669068586; cv=none; d=google.com; s=arc-20160816; b=bxCYnfg9y7Roei+zGsU2jWr+JkdJ1JFAPsY8GJMmPikdXpC6KGSoo9g1athveULbxV QHoiZfCWN5g48bDPlZthv3425uJzL5CTrR9UnbmNuKD4rPQk6twYtM6sMLC/ssgaDAxa m90hcfD5qT4B6euKCmq8dZkVh8Ym+cf8QCQW75u1UtqQWbmJaG8HuKF7KdK4oSHw4oZt h7T1yuJLXkWZYozkYQJauxC2D5ymNJC3IKHEqAwNiUljsqpkdrQeqmuhuE/u7gbdxPPi oWwBKDaVr05JZDFyh1p64PM44CkSzDI1MoqVFiqEFVSbDd4dUWJ2W/iBBLeXjdsyOsIw x1PQ== 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=XKA7OetuxyHn0/7Yx79VczhEkEydInuzm/wwILTcdcs=; b=Hv733LyzYyAWLHoPqClmiyB224Isfj8TeLBqdGZNo4lHR7nixiqo/NbybbfoJwB/su GgfIGNR3ResW24eWJnjlGTIci7RuE6ciuUWA6TY5aU9P9WJWDcVlDSk0gYJIr7l+Dasw t/jS+6R2dbVY6ZkvMhCj9Zt6lVILw/pLjIP1x983kBfY4aWc3Cg6F3IN27iL/PzmzwfR BBomXvXuR58fISZwYRoYAZZCfGwd5AbML3LGa4YaDndRP56sPeUKyWWSmjBHh/1LWUQJ maXDzFTXQrDxEysaLitFQSLHTcSiUkrk6aj0lgOMxSxzYhNi/ETJj8o3wTNxm/wZ+rAg 2lEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=wV+c4UQe; 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 d21-20020a1709067f1500b007707b853e46si8512959ejr.882.2022.11.21.14.09.22; Mon, 21 Nov 2022 14:09:46 -0800 (PST) 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=wV+c4UQe; 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 S230289AbiKUVsr (ORCPT + 91 others); Mon, 21 Nov 2022 16:48:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231408AbiKUVsl (ORCPT ); Mon, 21 Nov 2022 16:48:41 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AF06D53A9; Mon, 21 Nov 2022 13:48:37 -0800 (PST) Received: from umang.jainideasonboard.com (unknown [103.86.18.138]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 084E5E61; Mon, 21 Nov 2022 22:48:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1669067316; bh=O8PGqwvk0qKv2naaAUYDVsypILKqSXQmDZKmiivH3eY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wV+c4UQeUMeEEfsRPLPFRdMUDyiw/dpuBsFBEg2OW5RUqoDsimavQb7QGebb7PrM8 MQ8fo7hzhUCEhimJ4gkkJa2Q7abPuItXm+FkMwuwYfm1xcvZrFZZhOSnTOAm8ZcqeN TwyYfUe1McWOChBYqmSKJXTXoenAEynSIzY3FuVQ= From: Umang Jain To: linux-media@vger.kernel.org, kernel-list@raspberrypi.com, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, Broadcom internal kernel review list Cc: Dave Stevenson , Florian Fainelli , Naushir Patuck , David Plowman , Kieran Bingham , Laurent Pinchart , Umang Jain Subject: [PATCH 02/14] staging: vchiq_arm: Register vcsm-cma as a platform driver Date: Tue, 22 Nov 2022 03:17:10 +0530 Message-Id: <20221121214722.22563-3-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221121214722.22563-1-umang.jain@ideasonboard.com> References: <20221121214722.22563-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 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 From: Dave Stevenson Following the same pattern as bcm2835-camera and bcm2835-audio, register the vcsm-cma driver as a platform driver. Signed-off-by: Dave Stevenson Signed-off-by: Umang Jain --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 3 +++ 1 file changed, 3 insertions(+) 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 dc33490ba7fb..642fdbc0d654 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -67,6 +67,7 @@ struct vchiq_state g_state; static struct platform_device *bcm2835_camera; static struct platform_device *bcm2835_audio; +static struct platform_device *vcsm_cma; struct vchiq_drvdata { const unsigned int cache_line_size; @@ -1832,6 +1833,7 @@ static int vchiq_probe(struct platform_device *pdev) goto error_exit; } + vcsm_cma = vchiq_register_child(pdev, "vcsm-cma"); bcm2835_camera = vchiq_register_child(pdev, "bcm2835-camera"); bcm2835_audio = vchiq_register_child(pdev, "bcm2835_audio"); @@ -1847,6 +1849,7 @@ static int vchiq_remove(struct platform_device *pdev) { platform_device_unregister(bcm2835_audio); platform_device_unregister(bcm2835_camera); + platform_device_unregister(vcsm_cma); vchiq_debugfs_deinit(); vchiq_deregister_chrdev(); -- 2.37.3