PCMCIA: soc_common: constify soc_pcmcia_socket ops member
authorRussell King - ARM Linux <linux@arm.linux.org.uk>
Sun, 29 Mar 2009 21:14:32 +0000 (22:14 +0100)
committerDominik Brodowski <linux@dominikbrodowski.net>
Mon, 9 Nov 2009 07:30:13 +0000 (08:30 +0100)
No one should modify the ops structure supplied to soc_pcmcia_socket
so make it const.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/pcmcia/soc_common.h

index 8a755c1a949af14effa3b861fd2363d99d24691e..f7533dcba679b8373a96e0d7e3368f72d7f09f36 100644 (file)
@@ -37,7 +37,7 @@ struct soc_pcmcia_socket {
        /*
         * Core PCMCIA state
         */
-       struct pcmcia_low_level *ops;
+       const struct pcmcia_low_level *ops;
 
        unsigned int            status;
        socket_state_t          cs_state;