]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MMC] constify mmc_host_ops
authorDavid Brownell <david-b@pacbell.net>
Sun, 3 Sep 2006 13:43:33 +0000 (06:43 -0700)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 7 Sep 2006 12:18:40 +0000 (13:18 +0100)
Let drivers constify MMC host method operations tables,
moving them from ".data" to ".rodata".

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Pierre Ossman <drzeus@drzeus.cx>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
include/linux/mmc/host.h

index c1f021eddffa1663993d558a7c9dfb489e11e5fb..ba095aebedffb67cf060fa2fc5e0c56c9483a05c 100644 (file)
@@ -77,7 +77,7 @@ struct mmc_host {
        struct device           *dev;
        struct class_device     class_dev;
        int                     index;
-       struct mmc_host_ops     *ops;
+       const struct mmc_host_ops *ops;
        unsigned int            f_min;
        unsigned int            f_max;
        u32                     ocr_avail;