From: Bhumika Goyal Date: Sun, 15 Oct 2017 21:04:23 +0000 (+0100) Subject: parport: make parport_ip32_ops const and __initconst X-Git-Tag: v4.15-rc1~88^2~56 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c932806c65f3b6712133f6433f9b7c31a6ca0d0b;p=thirdparty%2Flinux.git 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 Signed-off-by: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/parport/parport_ip32.c b/drivers/parport/parport_ip32.c index 0186db7680d4f..62873070f988e 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,