• Mark Brown's avatar
    spi: Use devm_clk_get_*() helper function to · fd811b62
    Mark Brown authored
    Merge series from Li Zetao <lizetao1@huawei.com>:
    
    Commit 7ef9651e ("clk: Provide new devm_clk helpers for prepared
    and enabled clocks") provides a new helper function for prepared and
    enabled clocks when a driver keeps a clock prepared (or enabled) during
    the whole lifetime of the driver. So where drivers get clocks and enable
    them immediately, it can be combined into a single function
    devm_clk_get_*(). Moreover, the unprepare and disable function
    has been registered to devm_clk_state, and before devm_clk_state is
    released, the clocks will be unprepareed and disable, so it is unnecessary
    to unprepare and disable clocks explicitly when remove drivers or in the
    error handling path.
    fd811b62
spi-microchip-core-qspi.c 16.4 KB