lkml.org 
[lkml]   [2010]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 28/62] Driver core: make struct platform_driver.id_table const
    Date
    From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

    This fixes a warning on several pxa based machines:

    arch/arm/mach-pxa/ssp.c:475: warning: initialization discards qualifiers from pointer target type

    Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
    Acked-by: Vikram Dhillon <dhillonv10@gmail.com>
    Acked-by: Eric Miao <eric.y.miao@gmail.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
    ---
    drivers/base/platform.c | 2 +-
    include/linux/platform_device.h | 2 +-
    2 files changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/base/platform.c b/drivers/base/platform.c
    index 937d580..575e08b 100644
    --- a/drivers/base/platform.c
    +++ b/drivers/base/platform.c
    @@ -636,7 +636,7 @@ static int platform_uevent(struct device *dev, struct kobj_uevent_env *env)
    }

    static const struct platform_device_id *platform_match_id(
    - struct platform_device_id *id,
    + const struct platform_device_id *id,
    struct platform_device *pdev)
    {
    while (id->name[0]) {
    diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h
    index 2c2d035..212da17 100644
    --- a/include/linux/platform_device.h
    +++ b/include/linux/platform_device.h
    @@ -62,7 +62,7 @@ struct platform_driver {
    int (*suspend)(struct platform_device *, pm_message_t state);
    int (*resume)(struct platform_device *);
    struct device_driver driver;
    - struct platform_device_id *id_table;
    + const struct platform_device_id *id_table;
    };

    extern int platform_driver_register(struct platform_driver *);
    --
    1.7.0.1
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2010-03-03 00:57    [W:3.631 / U:0.176 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site