summaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_of_platform.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-03-02 01:03:28 +0530
committerTejun Heo <tj@kernel.org>2017-03-06 15:18:01 -0500
commite3779f6a4e7359bc0f83c3e2d34702a6c495e66e (patch)
treede07e003064165029e6ccc14c53072cdedcada69 /drivers/ata/pata_of_platform.c
parentc1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201 (diff)
downloadblackbird-op-linux-e3779f6a4e7359bc0f83c3e2d34702a6c495e66e.tar.gz
blackbird-op-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_of_platform.c')
-rw-r--r--drivers/ata/pata_of_platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_of_platform.c b/drivers/ata/pata_of_platform.c
index 201a32d0627f..01161c1aef4d 100644
--- a/drivers/ata/pata_of_platform.c
+++ b/drivers/ata/pata_of_platform.c
@@ -67,7 +67,7 @@ static int pata_of_platform_probe(struct platform_device *ofdev)
reg_shift, pio_mask, &pata_platform_sht);
}
-static struct of_device_id pata_of_platform_match[] = {
+static const struct of_device_id pata_of_platform_match[] = {
{ .compatible = "ata-generic", },
{ },
};
OpenPOWER on IntegriCloud