PCI: mediatek-gen3: Change driver name to mtk-pcie-gen3
driver_register() will refuse to register another driver with the same name.
This change allows pcie-mediatek-gen3 to coexist with pcie-mediatek built into
the kernel.
Link: https://lore.kernel.org/r/20220505083907.86598-1-nbd@nbd.name
Fixes: d3bf75b579
("PCI: mediatek-gen3: Add MediaTek Gen3 driver for MT8192")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Jianjun Wang <jianjun.wang@mediatek.com>
This commit is contained in:
parent
568035b01c
commit
034fdac01f
|
@ -1071,7 +1071,7 @@ static struct platform_driver mtk_pcie_driver = {
|
||||||
.probe = mtk_pcie_probe,
|
.probe = mtk_pcie_probe,
|
||||||
.remove = mtk_pcie_remove,
|
.remove = mtk_pcie_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "mtk-pcie",
|
.name = "mtk-pcie-gen3",
|
||||||
.of_match_table = mtk_pcie_of_match,
|
.of_match_table = mtk_pcie_of_match,
|
||||||
.pm = &mtk_pcie_pm_ops,
|
.pm = &mtk_pcie_pm_ops,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue