summaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_macio.c
diff options
context:
space:
mode:
authorBhumika Goyal2017-03-01 20:33:28 +0100
committerTejun Heo2017-03-06 21:18:01 +0100
commite3779f6a4e7359bc0f83c3e2d34702a6c495e66e (patch)
treede07e003064165029e6ccc14c53072cdedcada69 /drivers/ata/pata_macio.c
parentLinux 4.11-rc1 (diff)
downloadkernel-qcow2-linux-e3779f6a4e7359bc0f83c3e2d34702a6c495e66e.tar.gz
kernel-qcow2-linux-e3779f6a4e7359bc0f83c3e2d34702a6c495e66e.tar.xz
kernel-qcow2-linux-e3779f6a4e7359bc0f83c3e2d34702a6c495e66e.zip
ata: constify of_device_id structures
Declare of_device_id structures as const as they are either passed to the macro MODULE_DEVICE_TABLE or stored in the of_match_table field of a device_driver structure. This field is of type const, so of_device_id structures having this property can be made const too. Cross compiled the files drivers/ata/pata_macio.c and drivers/ata/pata_mpc52xx.c for powerpc architecture. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/pata_macio.c')
-rw-r--r--drivers/ata/pata_macio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_macio.c b/drivers/ata/pata_macio.c
index e347e7acd8ed..0adcb40d2794 100644
--- a/drivers/ata/pata_macio.c
+++ b/drivers/ata/pata_macio.c
@@ -1328,7 +1328,7 @@ static int pata_macio_pci_resume(struct pci_dev *pdev)
}
#endif /* CONFIG_PM_SLEEP */
-static struct of_device_id pata_macio_match[] =
+static const struct of_device_id pata_macio_match[] =
{
{
.name = "IDE",