lkml.org 
[lkml]   [2014]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 10/16] mfd: omap-usb-host: Make of_device_id array const
    Date
    Array of struct of_device_id may be be const as expected by
    of_platform_populate() call.

    Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
    Cc: Roger Quadros <rogerq@ti.com>
    ---
    drivers/mfd/omap-usb-host.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c
    index 651e249287dc..b48d80c367f9 100644
    --- a/drivers/mfd/omap-usb-host.c
    +++ b/drivers/mfd/omap-usb-host.c
    @@ -557,7 +557,7 @@ static int usbhs_omap_get_dt_pdata(struct device *dev,
    return 0;
    }

    -static struct of_device_id usbhs_child_match_table[] = {
    +static const struct of_device_id usbhs_child_match_table[] = {
    { .compatible = "ti,omap-ehci", },
    { .compatible = "ti,omap-ohci", },
    { }
    --
    1.9.1


    \
     
     \ /
      Last update: 2014-05-13 14:21    [W:4.215 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site