Skip to contentSkip to conversation

gpio: mxs: Remove unused .id_table support

PATCH In review Fabio Estevam 2 participants 2 messages Nov 18, 2020 – Dec 4, 2020

Subsystems (2)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 gpio: mxs: Remove unused .id_table support

mxs is a devicetree-only platform and hence it does not make use of the id_table mechanism.

Get rid of the .id_table as it is unused.

---
 drivers/gpio/gpio-mxs.c | 14 --------------
 1 file changed, 14 deletions(-)
drivers/gpio/gpio-mxs.c +0 -14
index c4a314c68555..dfc0c1eb1b33 100644
@@ -254,19 +254,6 @@ static int mxs_gpio_get_direction(struct gpio_chip *gc, unsigned offset)
 	return GPIO_LINE_DIRECTION_IN;
 }
 
-static const struct platform_device_id mxs_gpio_ids[] = {
-	{
-		.name = "imx23-gpio",
-		.driver_data = IMX23_GPIO,
-	}, {
-		.name = "imx28-gpio",
-		.driver_data = IMX28_GPIO,
-	}, {
-		/* sentinel */
-	}
-};
-MODULE_DEVICE_TABLE(platform, mxs_gpio_ids);
-
 static const struct of_device_id mxs_gpio_dt_ids[] = {
 	{ .compatible = "fsl,imx23-gpio", .data = (void *) IMX23_GPIO, },
 	{ .compatible = "fsl,imx28-gpio", .data = (void *) IMX28_GPIO, },
@@ -370,7 +357,6 @@ static struct platform_driver mxs_gpio_driver = {
 		.suppress_bind_attrs = true,
 	},
 	.probe		= mxs_gpio_probe,
-	.id_table	= mxs_gpio_ids,
 };
 
 static int __init mxs_gpio_init(void)
Signature · 1 line
2.17.1
#1 lore raw
Quoted 6 lines · Fabio Estevam

mxs is a devicetree-only platform and hence it does not make use of the id_table mechanism.

Get rid of the .id_table as it is unused.

Patch applied.

Yours,
Linus Walleij