ALSA: hda/tegra: get clock handles early in probe
authorSameer Pujar <spujar@nvidia.com>
Tue, 22 Jan 2019 07:33:17 +0000 (13:03 +0530)
committerTakashi Iwai <tiwai@suse.de>
Tue, 22 Jan 2019 08:21:54 +0000 (09:21 +0100)
commit65af2122e8727a6bf4890a0d2a1d79ea1db323c1
tree97ccb18b28497e6c4b8fce186c9eeaae5efb5029
parent3f7e94e6d66b52bb6a86b7e06f5f2453491bf7c8
ALSA: hda/tegra: get clock handles early in probe

Moved devm_clk_get() API calls to a separate function and the same
can be called early in the probe. This is done before runtime PM
for the device is enabled. The runtime resume/suspend callbacks can
later enable/disable clocks respectively(the support would be added
in subsequent patches). Clock handles should be available by the
time runtime suspend/resume calls can happen.

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>
sound/pci/hda/hda_tegra.c