summaryrefslogtreecommitdiffstats
path: root/drivers/parport/parport_ip32.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-10-15 22:04:23 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-20 15:17:44 +0200
commitc932806c65f3b6712133f6433f9b7c31a6ca0d0b (patch)
tree372c7ce30fa9ac3ff757d67d3c7e8d9c66364bf5 /drivers/parport/parport_ip32.c
parent421eb12ead322d66b469b8bf658eca2213f409f5 (diff)
downloadblackbird-op-linux-c932806c65f3b6712133f6433f9b7c31a6ca0d0b.tar.gz
blackbird-op-linux-c932806c65f3b6712133f6433f9b7c31a6ca0d0b.zip
parport: make parport_ip32_ops const and __initconst
Make this const as it is only used during a copy operation. This usage is inside init function and the structure is not referenced after initialisation, so make it __initconst too. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/parport/parport_ip32.c')
-rw-r--r--drivers/parport/parport_ip32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/parport/parport_ip32.c b/drivers/parport/parport_ip32.c
index 0186db7680d4..62873070f988 100644
--- a/drivers/parport/parport_ip32.c
+++ b/drivers/parport/parport_ip32.c
@@ -1769,7 +1769,7 @@ stop:
/*--- Default parport operations ---------------------------------------*/
-static __initdata struct parport_operations parport_ip32_ops = {
+static const struct parport_operations parport_ip32_ops __initconst = {
.write_data = parport_ip32_write_data,
.read_data = parport_ip32_read_data,
OpenPOWER on IntegriCloud