Skip to content

Commit f74faa0

Browse files
fabioestevamvinodkoul
authored andcommitted
dmaengine: imx-sdma: Remove unused .id_table support
Since 5.10-rc1 i.MX is a devicetree-only platform and the existing .id_table support in this driver was only useful for old non-devicetree platforms. Signed-off-by: Fabio Estevam <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 07b5527 commit f74faa0

File tree

1 file changed

+1
-37
lines changed

1 file changed

+1
-37
lines changed

drivers/dma/imx-sdma.c

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -566,37 +566,6 @@ static struct sdma_driver_data sdma_imx8mq = {
566566
.check_ratio = 1,
567567
};
568568

569-
static const struct platform_device_id sdma_devtypes[] = {
570-
{
571-
.name = "imx25-sdma",
572-
.driver_data = (unsigned long)&sdma_imx25,
573-
}, {
574-
.name = "imx31-sdma",
575-
.driver_data = (unsigned long)&sdma_imx31,
576-
}, {
577-
.name = "imx35-sdma",
578-
.driver_data = (unsigned long)&sdma_imx35,
579-
}, {
580-
.name = "imx51-sdma",
581-
.driver_data = (unsigned long)&sdma_imx51,
582-
}, {
583-
.name = "imx53-sdma",
584-
.driver_data = (unsigned long)&sdma_imx53,
585-
}, {
586-
.name = "imx6q-sdma",
587-
.driver_data = (unsigned long)&sdma_imx6q,
588-
}, {
589-
.name = "imx7d-sdma",
590-
.driver_data = (unsigned long)&sdma_imx7d,
591-
}, {
592-
.name = "imx8mq-sdma",
593-
.driver_data = (unsigned long)&sdma_imx8mq,
594-
}, {
595-
/* sentinel */
596-
}
597-
};
598-
MODULE_DEVICE_TABLE(platform, sdma_devtypes);
599-
600569
static const struct of_device_id sdma_dt_ids[] = {
601570
{ .compatible = "fsl,imx6q-sdma", .data = &sdma_imx6q, },
602571
{ .compatible = "fsl,imx53-sdma", .data = &sdma_imx53, },
@@ -1998,11 +1967,7 @@ static int sdma_probe(struct platform_device *pdev)
19981967
s32 *saddr_arr;
19991968
const struct sdma_driver_data *drvdata = NULL;
20001969

2001-
if (of_id)
2002-
drvdata = of_id->data;
2003-
else if (pdev->id_entry)
2004-
drvdata = (void *)pdev->id_entry->driver_data;
2005-
1970+
drvdata = of_id->data;
20061971
if (!drvdata) {
20071972
dev_err(&pdev->dev, "unable to find driver data\n");
20081973
return -EINVAL;
@@ -2211,7 +2176,6 @@ static struct platform_driver sdma_driver = {
22112176
.name = "imx-sdma",
22122177
.of_match_table = sdma_dt_ids,
22132178
},
2214-
.id_table = sdma_devtypes,
22152179
.remove = sdma_remove,
22162180
.probe = sdma_probe,
22172181
};

0 commit comments

Comments
 (0)