Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp947069pxb; Thu, 4 Feb 2021 00:49:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJw0TlQDx0lNf+qI46VqzxOHCCoNWM0olRLD+accoNfgUNAp3nmkwlXA3ZjS5pz6NtelaTGh X-Received: by 2002:a05:6402:12c2:: with SMTP id k2mr7135254edx.281.1612428573922; Thu, 04 Feb 2021 00:49:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612428573; cv=none; d=google.com; s=arc-20160816; b=0Lhvl2kW/nckyOTiM0v+7exeQyFn4mJhfRzft3xYkTl5Px1aSAk5yso8371Xj4Ii3i sY28AI3XHWZ3zNWp/GTZSbZU4BY0BUCa1NduOA07cfz1pPeFeHFV9zhGGgq+zjOSqPio HSu9JgPviKmPXIjTyRKoyPU7csZdwGZ2MN8MWykPciKF+CR6v3aU+uTGDDrNH78Kotkw zwidDhQ/Pkh8waBWZnk+6d0jemIWqD3tPNhH8IK+lENSjO6eXJSHauGzJWe5G05xFDiH rhvV02B3QLGwaefcm3SU5w/iJ8mcMBz7JQl/0uAMQaWUVZA7tIpmBGVZXq79DCMHD9wH UCOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=M1W7lnH3WVTrEg/mRlrlwrtBldl3psNcbgfNxLcMeWc=; b=COMkd5RVcHL2GjFnFkFJVB5gvkPeZEvkk/XSLN5CANjfu4AUOrogx45Y5pE7/sQVS8 ouPUGqgQphyrUKCf5AsT/uc2v8WQwVbUXlGpTR7zmmCfT7FRkE1PnpruxRkELBQ1ZLbp Q3qeTOJ59d3qnm1Q7EADYCTzY8IFCPtPqKwnooB36+A9GqZlJE1iTBUbbZgQV3VW99iO Gxm1sX3Em8cyh5Ct5qBvLtWXsRBIkmtaREWJ3XJc10QsZF0vdyxyx3E5Lq6gfVRrH8UJ r3ZVK4WPl2hqifQXjBkFHUjnNLYvVPeQQeBEgTnryot1mkJMRrdPHWGH9rwK2WTtx35r SitA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=4XUyY1UB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b15si2874864edk.399.2021.02.04.00.49.09; Thu, 04 Feb 2021 00:49:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=4XUyY1UB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235123AbhBDIrH (ORCPT + 99 others); Thu, 4 Feb 2021 03:47:07 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:48338 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S235089AbhBDIqz (ORCPT ); Thu, 4 Feb 2021 03:46:55 -0500 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 1148hDeO031781; Thu, 4 Feb 2021 09:46:08 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=selector1; bh=M1W7lnH3WVTrEg/mRlrlwrtBldl3psNcbgfNxLcMeWc=; b=4XUyY1UBfr7spoU1GYbxWORWavHiLvbCGTvu1mC5qzU7Nlj7r6ujlZw+L+rgwnEcHypY XBXICLLjYWondcXrHz0EhIs5m7BQbkPa8K01ajzdB/E6uXsdi+BMxD3sbUZgE3j7JgFd ar4uLhlKPjXJCNtlmpnznUdp7AfmMTg/iSWgRSbg7llCAVCim8x/CDbf2Q5BGs6LPbX0 2n3hPZWo/247F1qI/HCcSz6Rvq/JdrfACIv69Cn6lSW+0cGhcAPawXKZxkGa6K5dBEO5 kDwObxnvsm8rVXLCc/fNlkpPLE8jqLvnEkzk2JgByldOV2Ks6MU3ZuziBZDjimp/3Ryw 1w== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 36e7x16ev5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 04 Feb 2021 09:46:08 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D96A310002A; Thu, 4 Feb 2021 09:46:07 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag2node3.st.com [10.75.127.6]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id CDF3622AE49; Thu, 4 Feb 2021 09:46:07 +0100 (CET) Received: from localhost (10.75.127.50) by SFHDAG2NODE3.st.com (10.75.127.6) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 4 Feb 2021 09:46:07 +0100 From: Arnaud Pouliquen To: Bjorn Andersson , Ohad Ben-Cohen , Mathieu Poirier , Andy Gross CC: , , , , Subject: [PATCH v3 04/15] rpmsg: char: dissociate the control device from the rpmsg class Date: Thu, 4 Feb 2021 09:45:23 +0100 Message-ID: <20210204084534.10516-5-arnaud.pouliquen@foss.st.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210204084534.10516-1-arnaud.pouliquen@foss.st.com> References: <20210204084534.10516-1-arnaud.pouliquen@foss.st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG2NODE1.st.com (10.75.127.4) To SFHDAG2NODE3.st.com (10.75.127.6) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.737 definitions=2021-02-04_03:2021-02-04,2021-02-04 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The RPMsg control device is a RPMsg device, it is already referenced in the RPMsg bus. There is only an interest to reference the ept char devices in the rpmsg class. This patch prepares the code split of the control and end point devices in two separate files. Signed-off-by: Arnaud Pouliquen --- drivers/rpmsg/rpmsg_char.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/rpmsg/rpmsg_char.c b/drivers/rpmsg/rpmsg_char.c index 78a6d19fdf82..23e369a00531 100644 --- a/drivers/rpmsg/rpmsg_char.c +++ b/drivers/rpmsg/rpmsg_char.c @@ -485,7 +485,6 @@ static int rpmsg_chrdev_probe(struct rpmsg_device *rpdev) dev = &ctrldev->dev; device_initialize(dev); dev->parent = &rpdev->dev; - dev->class = rpmsg_class; cdev_init(&ctrldev->cdev, &rpmsg_ctrldev_fops); ctrldev->cdev.owner = THIS_MODULE; -- 2.17.1