Skip to content

Commit

Permalink
parport: make parport_ip32_ops const and __initconst
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Sudip Mukherjee <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
goyalbhumika authored and gregkh committed Oct 20, 2017
1 parent 421eb12 commit c932806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/parport/parport_ip32.c
Original file line number Diff line number Diff line change
Expand Up @@ -1769,7 +1769,7 @@ static size_t parport_ip32_ecp_write_data(struct parport *p,

/*--- 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,

Expand Down

0 comments on commit c932806

Please sign in to comment.