Commit ccf22a48 authored by Arnaud Pouliquen's avatar Arnaud Pouliquen Committed by Mathieu Poirier

remoteproc: virtio: Fix warning on bindings by removing the of_match_table

The checkpatch tool complains that "virtio,rproc" is not documented.
But it is not possible to probe the device "rproc-virtio" by declaring
it in the device tree. So documenting it in the bindings does not make
sense.
This commit solves the checkpatch warning by suppressing the useless
of_match_table.
Suggested-by: default avatarRob Herring <robh@kernel.org>
Fixes: 1d7b61c0 ("remoteproc: virtio: Create platform device for the remoteproc_virtio")
Signed-off-by: default avatarArnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20221005081317.3411684-1-arnaud.pouliquen@foss.st.comSigned-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
parent ba194232
......@@ -13,8 +13,8 @@
#include <linux/dma-map-ops.h>
#include <linux/dma-mapping.h>
#include <linux/export.h>
#include <linux/of_platform.h>
#include <linux/of_reserved_mem.h>
#include <linux/platform_device.h>
#include <linux/remoteproc.h>
#include <linux/virtio.h>
#include <linux/virtio_config.h>
......@@ -593,17 +593,11 @@ static int rproc_virtio_remove(struct platform_device *pdev)
}
/* Platform driver */
static const struct of_device_id rproc_virtio_match[] = {
{ .compatible = "virtio,rproc" },
{},
};
static struct platform_driver rproc_virtio_driver = {
.probe = rproc_virtio_probe,
.remove = rproc_virtio_remove,
.driver = {
.name = "rproc-virtio",
.of_match_table = rproc_virtio_match,
},
};
builtin_platform_driver(rproc_virtio_driver);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment