lkml.org 
[lkml]   [2012]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 03/03] clocksource: em_sti: Add DT support
    From: Magnus Damm <damm@opensource.se>

    Update the em-sti driver to support DT.

    Signed-off-by: Magnus Damm <damm@opensource.se>
    ---

    drivers/clocksource/em_sti.c | 7 +++++++
    1 file changed, 7 insertions(+)

    --- 0015/drivers/clocksource/em_sti.c
    +++ work/drivers/clocksource/em_sti.c 2012-05-09 22:52:47.000000000 +0900
    @@ -403,11 +403,18 @@ static int __devexit em_sti_remove(struc
    return -EBUSY; /* cannot unregister clockevent and clocksource */
    }

    +static const struct of_device_id em_sti_dt_ids[] __devinitconst = {
    + { .compatible = "renesas,em-sti", },
    + {},
    +};
    +MODULE_DEVICE_TABLE(of, em_sti_dt_ids);
    +
    static struct platform_driver em_sti_device_driver = {
    .probe = em_sti_probe,
    .remove = __devexit_p(em_sti_remove),
    .driver = {
    .name = "em_sti",
    + .of_match_table = em_sti_dt_ids,
    }
    };


    \
     
     \ /
      Last update: 2012-05-09 17:21    [W:0.030 / U:241.416 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site