lkml.org 
[lkml]   [2013]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5/6] ACPI / LPSS: return no error from register_device_clock in special cases
    Date
    When device uses the fixed clock and has no private space of LTR, we have to
    create main LPSS clock and register platform device. This is normally a case
    for LPSS DMA controller.

    Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    ---
    drivers/acpi/acpi_lpss.c | 4 ++++
    1 file changed, 4 insertions(+)

    diff --git a/drivers/acpi/acpi_lpss.c b/drivers/acpi/acpi_lpss.c
    index b1c9542..4015929 100644
    --- a/drivers/acpi/acpi_lpss.c
    +++ b/drivers/acpi/acpi_lpss.c
    @@ -95,6 +95,10 @@ static int register_device_clock(struct acpi_device *adev,
    if (!lpss_clk_dev)
    lpt_register_clock_device();

    + if (!dev_desc->prv_offset && dev_desc->clk_required)
    + /* There is no error when device uses fixed clock */
    + return 0;
    +
    if (!dev_desc->clk_parent || !pdata->mmio_base
    || pdata->mmio_size < dev_desc->prv_offset + LPSS_CLK_SIZE)
    return -ENODATA;
    --
    1.8.2.rc0.22.gb3600c3


    \
     
     \ /
      Last update: 2013-03-28 13:21    [W:5.052 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site