diff options
author | Sameer Pujar <spujar@nvidia.com> | 2019-01-22 08:33:19 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-01-22 09:21:55 +0100 |
commit | 091aa420530c1f0c93745dc9e506bfa96f898702 (patch) | |
tree | 834dc71c50158855b714663feac0693be19c5163 /sound/pci | |
parent | ALSA: hda/tegra: add runtime PM callbacks (diff) | |
download | linux-091aa420530c1f0c93745dc9e506bfa96f898702.tar.xz linux-091aa420530c1f0c93745dc9e506bfa96f898702.zip |
ALSA: hda/tegra: remove redundant clock enable API
Explicit clock enable is not required during probe, as this would be
managed by runtime PM calls. Clock can be enabled/disabled in runtime
resume/suspend. This way it is easier to balance clock enable/disable
counts.
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/hda_tegra.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sound/pci/hda/hda_tegra.c b/sound/pci/hda/hda_tegra.c index 1189f972cb83..f068b1e7719b 100644 --- a/sound/pci/hda/hda_tegra.c +++ b/sound/pci/hda/hda_tegra.c @@ -319,7 +319,6 @@ static int hda_tegra_init_chip(struct azx *chip, struct platform_device *pdev) struct hdac_bus *bus = azx_bus(chip); struct device *dev = hda->dev; struct resource *res; - int err; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); hda->regs = devm_ioremap_resource(dev, res); @@ -329,12 +328,6 @@ static int hda_tegra_init_chip(struct azx *chip, struct platform_device *pdev) bus->remap_addr = hda->regs + HDA_BAR0; bus->addr = res->start + HDA_BAR0; - err = hda_tegra_enable_clocks(hda); - if (err) { - dev_err(dev, "failed to get enable clocks\n"); - return err; - } - hda_tegra_init(hda); return 0; |