Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2796061lqo; Tue, 14 May 2024 09:19:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUE5qxIihwTL2DcP9Lrc7mingKb/UMXodUaWu/qwNtCGQyQKfhe/yjoqIFw7ocP391tlf4WqJz27mJIFU/NYs6kZfhtoXeZNaSz7fk/fQ== X-Google-Smtp-Source: AGHT+IEs6pP2Je8//M/RuOYWZl1FS6vtin8PWiwcxFeuLfl2Zswj5Yd6c2PKOL0uuC84UepL0D+j X-Received: by 2002:a17:907:10da:b0:a5a:89e1:ecfd with SMTP id a640c23a62f3a-a5a89e1edb9mr153922366b.29.1715703553653; Tue, 14 May 2024 09:19:13 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a3f85f311si423718166b.421.2024.05.14.09.19.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 09:19:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178938-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=gbzYFRFJ; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-178938-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178938-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D97801F236AE for ; Tue, 14 May 2024 16:18:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B9D417F36E; Tue, 14 May 2024 16:16:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="gbzYFRFJ" Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2048.outbound.protection.outlook.com [40.107.6.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B2358181333; Tue, 14 May 2024 16:16:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.6.48 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715703383; cv=fail; b=MuGJ3d4CLG9gMYRnzNjxHiV6z3dc5QbI7xxiM9zvgtHFcunCGU91lpYZ1MTe+kCmNZBQQSq+elkqQurCe6FZEvlj+3Fx4ODs0rSlNH3G4RS+zus/4cJpDZ7UlTXoQw4siPRr4OWid0SGdIDF0vP/DbdVcqpbwtwhZ3BhbzxgzxE= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715703383; c=relaxed/simple; bh=o14XS22P/netJvJtqUCgQ7C4J9kLM7Xh7A/m0JadBo8=; h=Date:From:To:Cc:Subject:Message-ID:References:Content-Type: Content-Disposition:In-Reply-To:MIME-Version; b=QaCEHKUniy15c2FzGO9Tw2fZHc9OtYWnU+2m+asMeVZihrgg3IomDJjVEUMK8MAHzvNoI+bZ5nsaqmf9rlktiedyeI8IGq0vubHeMzyt7pcGNzh9p9Izq2i3YqmHyasNBo5sVWFSjRbCyRFofn5fjIwszrwMFSMVdvX/tiFyhO0= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=gbzYFRFJ; arc=fail smtp.client-ip=40.107.6.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HA/aEQsF0J7bvzMX6/fpEHMuxJs+eaPLSCsY3/pt7tBUL6f3/56dII7f/9xS/qVislao0rhAQw8iq0GeLbzX/gBWPLVzRuxb+VfJtJpr5Ot6cUhq+qfvQm/Pa2NDt0rHyzVQRB54a3QxmcyE++MRCmdW4pan9u0Usd3BfQSCZqOZf+uOwOrHKmczzU+XFBdhLcWBqGCOzy2EdzAqvOnoLYE7xpqwL3WwOA7gxy+LhbUt8GIfuu727rzVoDfbpQf6CNpYovv02XMlOemf0L30ddzQC3SjwmR0X6FbiC+zncJ7t0M6fXj/VjrK/ZEDzSWBxVWwebiYZJ6xLqM092TEmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZQzx3MFUg11Hsctkni0/a+wPSAxgL1O62pZbnHv3sIo=; b=WqcpKxcZweNUTPHAMmLJtpjz/B2exj3OZmnZnGQIhztSCAjOpdpZDQHcqROvDBpHM2xhScQxBZDHhaoPO/opcRSo5yKUlJ/sQAJ7uGGnCFC5LVPNX08sObkBA9wQP/IILdyWELfo15MCLBwoqqUJ9xsyu6wiyxhhaEnbmGSsaVtT/JLIT+O55lw7r9i2ecBGzMkcy6lV2sIyhP/VlSsCyN0d6hjCqkNcxe2rXI4ZMFzM1sRsDUZKNWMd+2zJaLM74gbT3zBCBDKQg4EsEcspiN35ML+jtcuElHLrj9NCjWyZCSeK0OXen8aDwjAS55h3UgLh7kff68ilpb8iSrWNcw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZQzx3MFUg11Hsctkni0/a+wPSAxgL1O62pZbnHv3sIo=; b=gbzYFRFJwjDHW4ajy6f3Ahj61HgOXKPPe3XQwzcnKq23KF+1/EwhL/Tg7Qj5HZZP6yEHz1z9/kxebV7cuXicGWxyZsb1KldRYHvJpgny/YEJpe6nF87YISgxra2W8MA13xdvkOxvr8E91lPXFWZNn5GyWtFqBszdiSYQh/T05Zw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB9PR04MB9626.eurprd04.prod.outlook.com (2603:10a6:10:309::18) by DU4PR04MB10887.eurprd04.prod.outlook.com (2603:10a6:10:592::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.21; Tue, 14 May 2024 16:16:17 +0000 Received: from DB9PR04MB9626.eurprd04.prod.outlook.com ([fe80::e81:b393:ebc5:bc3d]) by DB9PR04MB9626.eurprd04.prod.outlook.com ([fe80::e81:b393:ebc5:bc3d%5]) with mapi id 15.20.7544.052; Tue, 14 May 2024 16:16:17 +0000 Date: Tue, 14 May 2024 12:16:09 -0400 From: Frank Li To: Angelo Dureghello Cc: Geert Uytterhoeven , Vinod Koul , "open list:DMA GENERIC OFFLOAD ENGINE SUBSYSTEM" , open list , "open list:FREESCALE eDMA DRIVER" , Greg Ungerer , linux-m68k Subject: Re: [PATCH 1/1] dmaengine: fsl-edma: merge mcf-edma into fsl-edma driver Message-ID: References: <20240509193517.3571694-1-Frank.Li@nxp.com> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-ClientProxiedBy: BYAPR06CA0069.namprd06.prod.outlook.com (2603:10b6:a03:14b::46) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9PR04MB9626:EE_|DU4PR04MB10887:EE_ X-MS-Office365-Filtering-Correlation-Id: 096aa94e-5152-4610-e98e-08dc74312ec8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|1800799015|52116005|376005|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?B?TEZscnQ1QjZkclAxS2Y1Znh0djJXWExybFh1UGZuQzhoaXRhOTg5VG5IMEJv?= =?utf-8?B?V1FaZ002MHBuYUNLZW5sKy9OeEVuSjVCRUNZV0VEQ2hWc0xrbjJ1SXI0a011?= =?utf-8?B?RnhzS0luWVI2Wi9zSmJacEZ4U3NRZHJEeS9GYi91aHVoOHRBYnMvM0ZQS1RQ?= =?utf-8?B?ZnF3UjNlME1GaFFmRmg0Z05YWlRZYzBnTXRBRThUV3VOUlYwcFQvWFl2VEZr?= =?utf-8?B?M1dRZGhaaW10UWxYL2Jybi9ORU9OMzNxOEhPVDN4YXNCVVg2TDJuVVhoZFhD?= =?utf-8?B?YW16US92SzlsNkl2dFdhR1BxaldTR0RhUmRndEhWejM3UzUzWnZoUjlwa0Vj?= =?utf-8?B?NXVGaVdCcGlNRHdmTmh2UzhrRmY1aW9Wc2l2NXhVUkpCYS9BQjh0YU5wNUh1?= =?utf-8?B?Y01xK05FNlM0MXdsWlR3TlNrSk9RS0JLMlVVaGxUcmtwVk9OYmxGWUdKdVpB?= =?utf-8?B?Sy9yZ0pw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1p2?= =?utf-8?B?aitRK2dKZU81SnpXMElPZzB1L2FWS1NsQVcxQVplSXMwNmdrczM2NjNobVQr?= =?utf-8?B?ejRnU0VaOE9ZZUtVL3ZrdkxrZFcyQ1ZsWlNIUzZFWVkxWWNLUFAyUlFsTldw?= =?utf-8?B?bVAxdHhOY1NFVTVBNTFFNDh3aS9lYjVRY3pSbkJUdUtLZDBzeTBKQXh4eU01?= =?utf-8?B?Zktkcnhab1YzaUZyV2ZsOHdIaThrZ1o1YlJnU3lMSmY2dW4ybnNDdUtkR1E1?= =?utf-8?B?ZG5hS1Z6UDdZS1ZGZTMrb0NDREJ5YTdXK3daZSs4eTYzdWVBUmpqOFllb2Vi?= =?utf-8?B?d3o3NEJyVUNIMHl1Yk84Nm1ycC9XTXZwdk1xbS9TaTU5L0pSWHhwanV3PT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR04MB9626.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(1800799015)(52116005)(376005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?M1o3L3NEUEpML0l0Z0Npd2xpanZGR1dkb25lRVpRcHc1cm1md0FmMEFvd0N0?= =?utf-8?B?anBrVlpENHRIQ1ZmRncvU05xUXhiK1lTSEdBZEZvdkl1TEN5UjE3eVE4aTF6?= =?utf-8?B?T1BYZG9RT2xzUUFOeElveExac3Mvd2JscjBXU3JXdzNyUGVveWh1Q3Bsc0ds?= =?utf-8?B?VW10bkJEMW40czZFWlJDVkdkK2ROZWx3TGQwMEE1WWpSUWk5UmxkSVpubXlV?= =?utf-8?B?ZmdZZEY4SmxjaEVRRTFRLzhSYUVCMFpITjJmdVZxWkUvZ1NZaG9LMk5yOUtq?= =?utf-8?B?TGVTZWVlRW90TmtxZkRiTGJ2MFE4S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B5FaYzxPU1+23?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 096aa94e-5152-4610-e98e-08dc74312ec8 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 May 2024 16:16:17.6372 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: jcNLYK2GTP7GT3hmp68/6m9iUYcXCmdeEjnYYi27vvdw8anv3soC1mjPE8jzTd7D84Hn3UDJRjP/qG9tptjeQA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10887 On Tue, May 14, 2024 at 09:57:09AM +0200, Angelo Dureghello wrote: > Hi, > > On 13/05/24 8:12 PM, Geert Uytterhoeven wrote: > > CC coldfire > > > > On Thu, May 9, 2024 at 9:35 PM Frank Li wrote: > > > MCF eDMA are almost the same as FSL eDMA driver. Previously link to two > > > kernel modules, fsl-edma.ko and mcf-edma.ko. These are not problem because > > > mcf-edma is for m68k ARCH and FSL eDMA is for arm/arm64 ARCH. But often > > > build both at PPC ARCH. It also makes sense to build two drivers at the > > > same time. It causes many build warning because share a fsl-edma-common.o. > > > such as: > > > > > > powerpc64le-linux-ld: warning: orphan section `.stubs' from `drivers/dma/fsl-edma-common.o' being placed in section `.stubs' > > > powerpc64le-linux-ld: warning: orphan section `.stubs' from `drivers/dma/fsl-edma-trace.o' being placed in section `.stubs' > > > > > > Merge mcf-edma into fsl-edma driver. So use one driver (fsl-edma.ko) for > > > MCF and FSL eDMA. > > > > > > mcf-edma.ko should be replaced by fsl-edma.ko in modules, minimizing user > > > space impact because MCF eDMA remains confined to legacy ColdFire mcf5441x > > > production and mcf5441x has been in production for at least a decade and > > > NXP has long ceased ColdFire development. > > when i developed mcf-edma, i tried to modify fsl-edma first. Modules are > similar but there are various edma IP versions, and i remember minimal > differences in the CF version too, some register bits and, of course, > endianness. > > If a merge is possible, welcome, i have here mcf5441x, can give a try to > this patch as soon as i can. Thanks. I am not sure if recent eDMAv3 and eDMAv5 patch impact mcf5441. eDMAv3 is quite big change. If you can test on mcf5441x, can I send to you a futher clean up for mcf5441x? This patch are just simple glue two driver together to avoid a build warning. > > > > > Update Kconfig to make MCF_EDMA as feature of FSL_EDMA and change Makefile > > > to link mcl-edma-main.o to fsl-edma.o. > > > > > > Create a common module init/exit functions, which call original's > > > fsl-edma-init[exit]() and mcf-edma-init[exit](). > > > > > > Reported-by: kernel test robot > > > Closes: https://lore.kernel.org/oe-kbuild-all/202405082029.Es9umH7n-lkp@intel.com/ > > > Signed-off-by: Frank Li > > > --- > > > drivers/dma/Kconfig | 8 ++++---- > > > drivers/dma/Makefile | 5 ++--- > > > drivers/dma/fsl-edma-common.c | 28 ++++++++++++++++++++++++++++ > > > drivers/dma/fsl-edma-common.h | 5 +++++ > > > drivers/dma/fsl-edma-main.c | 6 ++---- > > > drivers/dma/mcf-edma-main.c | 6 ++---- > > > 6 files changed, 43 insertions(+), 15 deletions(-) > > > > > > diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig > > > index 002a5ec806207..45110520f6e68 100644 > > > --- a/drivers/dma/Kconfig > > > +++ b/drivers/dma/Kconfig > > > @@ -393,14 +393,14 @@ config LS2X_APB_DMA > > > It does not support memory to memory data transfer. > > > > > > config MCF_EDMA > > > - tristate "Freescale eDMA engine support, ColdFire mcf5441x SoCs" > > > + bool "Freescale eDMA engine support, ColdFire mcf5441x SoCs" > > > depends on M5441x || COMPILE_TEST > > > select DMA_ENGINE > > > select DMA_VIRTUAL_CHANNELS > > > help > > > - Support the Freescale ColdFire eDMA engine, 64-channel > > > - implementation that performs complex data transfers with > > > - minimal intervention from a host processor. > > > + Support the Freescale ColdFire eDMA engine in FSL_EDMA driver, > > > + 64-channel implementation that performs complex data transfers > > > + with minimal intervention from a host processor. > > > This module can be found on Freescale ColdFire mcf5441x SoCs. > > > > > > config MILBEAUT_HDMAC > > > diff --git a/drivers/dma/Makefile b/drivers/dma/Makefile > > > index 802ca916f05f5..0000922c7cbfe 100644 > > > --- a/drivers/dma/Makefile > > > +++ b/drivers/dma/Makefile > > > @@ -33,11 +33,10 @@ obj-$(CONFIG_DW_EDMA) += dw-edma/ > > > obj-$(CONFIG_EP93XX_DMA) += ep93xx_dma.o > > > fsl-edma-trace-$(CONFIG_TRACING) := fsl-edma-trace.o > > > CFLAGS_fsl-edma-trace.o := -I$(src) > > > +mcf-edma-main-$(CONFIG_MCF_EDMA) := mcf-edma-main.o > > > obj-$(CONFIG_FSL_DMA) += fsldma.o > > > -fsl-edma-objs := fsl-edma-main.o fsl-edma-common.o ${fsl-edma-trace-y} > > > +fsl-edma-objs := fsl-edma-main.o fsl-edma-common.o ${fsl-edma-trace-y} ${mcf-edma-main-y} > > > obj-$(CONFIG_FSL_EDMA) += fsl-edma.o > > > -mcf-edma-objs := mcf-edma-main.o fsl-edma-common.o ${fsl-edma-trace-y} > > > -obj-$(CONFIG_MCF_EDMA) += mcf-edma.o > > > obj-$(CONFIG_FSL_QDMA) += fsl-qdma.o > > > obj-$(CONFIG_FSL_RAID) += fsl_raid.o > > > obj-$(CONFIG_HISI_DMA) += hisi_dma.o > > > diff --git a/drivers/dma/fsl-edma-common.c b/drivers/dma/fsl-edma-common.c > > > index 3af4307873157..ac04a2ce4fa1f 100644 > > > --- a/drivers/dma/fsl-edma-common.c > > > +++ b/drivers/dma/fsl-edma-common.c > > > @@ -888,4 +888,32 @@ void fsl_edma_setup_regs(struct fsl_edma_engine *edma) > > > } > > > } > > > > > > +static int __init fsl_edma_common_init(void) > > > +{ > > > + int ret; > > > + > > > + ret = fsl_edma_init(); > > > + if (ret) > > > + return ret; > > > + > > > +#ifdef CONFIG_MCF_EDMA > > > + ret = mcf_edma_init(); > > > + if (ret) > > > + return ret; > > > +#endif > > > + return 0; > > > +} > > > + > > > +subsys_initcall(fsl_edma_common_init); > > > + > > > +static void __exit fsl_edma_common_exit(void) > > > +{ > > > + fsl_edma_exit(); > > > + > > > +#ifdef CONFIG_MCF_EDMA > > > + mcf_edma_exit(); > > > +#endif > > > +} > > > +module_exit(fsl_edma_common_exit); > > > + > > > MODULE_LICENSE("GPL v2"); > > > diff --git a/drivers/dma/fsl-edma-common.h b/drivers/dma/fsl-edma-common.h > > > index ac66222c16040..dfbdcc922ceea 100644 > > > --- a/drivers/dma/fsl-edma-common.h > > > +++ b/drivers/dma/fsl-edma-common.h > > > @@ -488,4 +488,9 @@ void fsl_edma_free_chan_resources(struct dma_chan *chan); > > > void fsl_edma_cleanup_vchan(struct dma_device *dmadev); > > > void fsl_edma_setup_regs(struct fsl_edma_engine *edma); > > > > > > +int __init fsl_edma_init(void); > > > +void __exit fsl_edma_exit(void); > > > +int __init mcf_edma_init(void); > > > +void __exit mcf_edma_exit(void); > > > + > > > #endif /* _FSL_EDMA_COMMON_H_ */ > > > diff --git a/drivers/dma/fsl-edma-main.c b/drivers/dma/fsl-edma-main.c > > > index 391e4f13dfeb0..a1c3c4ed869c5 100644 > > > --- a/drivers/dma/fsl-edma-main.c > > > +++ b/drivers/dma/fsl-edma-main.c > > > @@ -724,17 +724,15 @@ static struct platform_driver fsl_edma_driver = { > > > .remove_new = fsl_edma_remove, > > > }; > > > > > > -static int __init fsl_edma_init(void) > > > +int __init fsl_edma_init(void) > > > { > > > return platform_driver_register(&fsl_edma_driver); > > > } > > > -subsys_initcall(fsl_edma_init); > > > > > > -static void __exit fsl_edma_exit(void) > > > +void __exit fsl_edma_exit(void) > > > { > > > platform_driver_unregister(&fsl_edma_driver); > > > } > > > -module_exit(fsl_edma_exit); > > > > > > MODULE_ALIAS("platform:fsl-edma"); > > > MODULE_DESCRIPTION("Freescale eDMA engine driver"); > > > diff --git a/drivers/dma/mcf-edma-main.c b/drivers/dma/mcf-edma-main.c > > > index 78c606f6d0026..d97991a1e9518 100644 > > > --- a/drivers/dma/mcf-edma-main.c > > > +++ b/drivers/dma/mcf-edma-main.c > > > @@ -284,17 +284,15 @@ bool mcf_edma_filter_fn(struct dma_chan *chan, void *param) > > > } > > > EXPORT_SYMBOL(mcf_edma_filter_fn); > > > > > > -static int __init mcf_edma_init(void) > > > +int __init mcf_edma_init(void) > > > { > > > return platform_driver_register(&mcf_edma_driver); > > > } > > > -subsys_initcall(mcf_edma_init); > > > > > > -static void __exit mcf_edma_exit(void) > > > +void __exit mcf_edma_exit(void) > > > { > > > platform_driver_unregister(&mcf_edma_driver); > > > } > > > -module_exit(mcf_edma_exit); > > > > > > MODULE_ALIAS("platform:mcf-edma"); > > > MODULE_DESCRIPTION("Freescale eDMA engine driver, ColdFire family"); > > > -- > > > 2.34.1 > > Regards, > angelo > >