mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
gpio: zynq: remove unneeded (void *) casts in of_match_table
of_device_id::data is an opaque pointer. No explicit cast is needed. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Sören Brinkmann <soren.brinkmann@xilinx.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
226b2242d4
commit
7808c42b40
@ -651,9 +651,8 @@ static const struct zynq_platform_data zynq_gpio_def = {
|
||||
};
|
||||
|
||||
static const struct of_device_id zynq_gpio_of_match[] = {
|
||||
{ .compatible = "xlnx,zynq-gpio-1.0", .data = (void *)&zynq_gpio_def },
|
||||
{ .compatible = "xlnx,zynqmp-gpio-1.0",
|
||||
.data = (void *)&zynqmp_gpio_def },
|
||||
{ .compatible = "xlnx,zynq-gpio-1.0", .data = &zynq_gpio_def },
|
||||
{ .compatible = "xlnx,zynqmp-gpio-1.0", .data = &zynqmp_gpio_def },
|
||||
{ /* end of table */ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, zynq_gpio_of_match);
|
||||
|
Loading…
Reference in New Issue
Block a user