diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-09-24 11:51:16 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-10-14 13:51:44 +0530 |
commit | f27c22736d133baff0ab3fdc7b015d998267d817 (patch) | |
tree | add1ad60d5b239d4c7707ee22e4eb4103efb84ed /drivers/dma | |
parent | 833b48242686606670edaa72a465c0faa44d2916 (diff) | |
download | linux-f27c22736d133baff0ab3fdc7b015d998267d817.tar.gz linux-f27c22736d133baff0ab3fdc7b015d998267d817.tar.bz2 linux-f27c22736d133baff0ab3fdc7b015d998267d817.zip |
dmaengine: dw: platform: Mark 'hclk' clock optional
On some platforms the clock can be fixed rate, always running one and
there is no need to do anything with it.
In order to support those platforms, switch to use optional clock.
Fixes: f8d9ddbc2851 ("dmaengine: dw: platform: Enable iDMA 32-bit on Intel Elkhart Lake")
Depends-on: 60b8f0ddf1a9 ("clk: Add (devm_)clk_get_optional() functions")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20190924085116.83683-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/dw/platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/dw/platform.c b/drivers/dma/dw/platform.c index c90c798e5ec3..0585d749d935 100644 --- a/drivers/dma/dw/platform.c +++ b/drivers/dma/dw/platform.c @@ -66,7 +66,7 @@ static int dw_probe(struct platform_device *pdev) data->chip = chip; - chip->clk = devm_clk_get(chip->dev, "hclk"); + chip->clk = devm_clk_get_optional(chip->dev, "hclk"); if (IS_ERR(chip->clk)) return PTR_ERR(chip->clk); err = clk_prepare_enable(chip->clk); |