Skip to content

Commit 4d8beff

Browse files
Fabian Frederickgregkh
authored andcommitted
uio: constify of_device_id array
of_device_id is always used as const. (See driver.of_match_table and open firmware functions) Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 5f5cc81 commit 4d8beff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/uio/uio_pdrv_genirq.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ static const struct dev_pm_ops uio_pdrv_genirq_dev_pm_ops = {
252252
};
253253

254254
#ifdef CONFIG_OF
255-
static struct of_device_id uio_of_genirq_match[] = {
255+
static const struct of_device_id uio_of_genirq_match[] = {
256256
{ /* This is filled with module_parm */ },
257257
{ /* Sentinel */ },
258258
};

0 commit comments

Comments
 (0)