]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
staging/mt7621-dma: mtk-hsdma.c->hsdma-mt7621.c
authorIlya Lipnitskiy <ilya.lipnitskiy@gmail.com>
Sat, 30 Jan 2021 03:45:07 +0000 (19:45 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 08:39:54 +0000 (09:39 +0100)
commit 1f92798cbe7fe923479cff754dd06dd23d352e36 upstream.

Also use KBUILD_MODNAME for module name.

This driver is only used by RALINK MIPS MT7621 SoCs. Tested by building
against that target using OpenWrt with Linux 5.10.10.

Fixes the following error:
error: the following would cause module name conflict:
  drivers/dma/mediatek/mtk-hsdma.ko
  drivers/staging/mt7621-dma/mtk-hsdma.ko

Cc: stable@vger.kernel.org
Cc: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
Link: https://lore.kernel.org/r/20210130034507.2115280-1-ilya.lipnitskiy@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-dma/Makefile
drivers/staging/mt7621-dma/hsdma-mt7621.c [moved from drivers/staging/mt7621-dma/mtk-hsdma.c with 99% similarity]

index d3152d45cf450cfbf78476b3521d38c15f0751e7..e3ab560ed35acb2816ee5fce4f79c5c5ed041cb6 100644 (file)
@@ -1,4 +1,4 @@
 obj-$(CONFIG_DMA_RALINK) += ralink-gdma.o
-obj-$(CONFIG_MTK_HSDMA) += mtk-hsdma.o
+obj-$(CONFIG_MTK_HSDMA) += hsdma-mt7621.o
 
 ccflags-y += -I$(srctree)/drivers/dma
similarity index 99%
rename from drivers/staging/mt7621-dma/mtk-hsdma.c
rename to drivers/staging/mt7621-dma/hsdma-mt7621.c
index f60302b71181305596088a7eff331338208d387e..f487cbc91dee661d97a186fd325cace2b9889c22 100644 (file)
@@ -760,7 +760,7 @@ static struct platform_driver mtk_hsdma_driver = {
        .probe = mtk_hsdma_probe,
        .remove = mtk_hsdma_remove,
        .driver = {
-               .name = "hsdma-mt7621",
+               .name = KBUILD_MODNAME,
                .of_match_table = mtk_hsdma_of_match,
        },
 };