lkml.org 
[lkml]   [2010]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 11/11] staging: crystalhd: remove unneeded crystalhd_stop_device() return code
    Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org>
    ---
    drivers/staging/crystalhd/crystalhd_hw.c | 9 ++-------
    1 files changed, 2 insertions(+), 7 deletions(-)

    diff --git a/drivers/staging/crystalhd/crystalhd_hw.c b/drivers/staging/crystalhd/crystalhd_hw.c
    index ba81d01..e407eb8 100644
    --- a/drivers/staging/crystalhd/crystalhd_hw.c
    +++ b/drivers/staging/crystalhd/crystalhd_hw.c
    @@ -320,7 +320,7 @@ static bool crystalhd_start_device(struct crystalhd_adp *adp)
    return true;
    }

    -static bool crystalhd_stop_device(struct crystalhd_adp *adp)
    +static void crystalhd_stop_device(struct crystalhd_adp *adp)
    {
    uint32_t reg;

    @@ -340,8 +340,6 @@ static bool crystalhd_stop_device(struct crystalhd_adp *adp)
    reg = crystalhd_reg_rd(adp, PCIE_CLK_REQ_REG);
    reg |= PCI_CLK_REQ_ENABLE;
    crystalhd_reg_wr(adp, PCIE_CLK_REQ_REG, reg);
    -
    - return true;
    }

    static crystalhd_rx_dma_pkt *crystalhd_hw_alloc_rx_pkt(struct crystalhd_hw *hw)
    @@ -2291,10 +2289,7 @@ BC_STATUS crystalhd_hw_suspend(struct crystalhd_hw *hw)

    crystalhd_put_ddr2sleep(hw);

    - if (!crystalhd_stop_device(hw->adp)) {
    - BCMLOG_ERR("Failed to Stop Device!!\n");
    - return BC_STS_ERROR;
    - }
    + crystalhd_stop_device(hw->adp);

    return BC_STS_SUCCESS;
    }
    --
    1.7.1


    \
     
     \ /
      Last update: 2010-04-25 15:47    [W:0.034 / U:130.516 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site