lkml.org 
[lkml]   [2012]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 11/14] usb: otg: Enable probing of the ab8500 during a Device Tree boot
    Date
    Without this patch, if Device Tree is enabled the AB8500 USB OTG driver
    wouldn't get probed at all, as there is no reference to it from platform
    code. This patch ensures the driver is probed during normal DT start-up.

    Cc: Felipe Balbi <balbi@ti.com>
    Cc: linux-usb@vger.kernel.org
    Signed-off-by: Lee Jones <lee.jones@linaro.org>
    ---
    drivers/usb/otg/ab8500-usb.c | 6 ++++++
    1 file changed, 6 insertions(+)

    diff --git a/drivers/usb/otg/ab8500-usb.c b/drivers/usb/otg/ab8500-usb.c
    index a84af67..9799ac6 100644
    --- a/drivers/usb/otg/ab8500-usb.c
    +++ b/drivers/usb/otg/ab8500-usb.c
    @@ -569,12 +569,18 @@ static int __devexit ab8500_usb_remove(struct platform_device *pdev)
    return 0;
    }

    +static const struct of_device_id ab8500_usb_match[] = {
    + { .compatible = "stericsson,ab8500-usb", },
    + {},
    +};
    +
    static struct platform_driver ab8500_usb_driver = {
    .probe = ab8500_usb_probe,
    .remove = __devexit_p(ab8500_usb_remove),
    .driver = {
    .name = "ab8500-usb",
    .owner = THIS_MODULE,
    + .of_match_table = ab8500_usb_match,
    },
    };

    --
    1.7.9.5


    \
     
     \ /
      Last update: 2012-06-12 01:41    [W:2.487 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site