ASoC: Intel: Skylake: Remove redundant init in resume
authorJeeja KP <[email protected]>
Fri, 13 Nov 2015 13:52:07 +0000 (19:22 +0530)
committerMark Brown <[email protected]>
Wed, 18 Nov 2015 18:46:36 +0000 (18:46 +0000)
Since we call _skl_resume which also initializes the chip we no
need to call these explicitly, so remove the duplication

Signed-off-by: Jeeja KP <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/intel/skylake/skl.c

index bdb99dcbfdcaa114b7bd976942cb611ed50b0d1f..d3e87b6f93fe4c6cef9bd5be26d42a9980408861 100644 (file)
@@ -199,13 +199,9 @@ static int skl_runtime_resume(struct device *dev)
        struct pci_dev *pci = to_pci_dev(dev);
        struct hdac_ext_bus *ebus = pci_get_drvdata(pci);
        struct hdac_bus *bus = ebus_to_hbus(ebus);
-       struct skl *skl = ebus_to_skl(ebus);
 
        dev_dbg(bus->dev, "in %s\n", __func__);
 
-       skl_init_pci(skl);
-       snd_hdac_bus_init_chip(bus, true);
-
        return _skl_resume(ebus);
 }
 #endif /* CONFIG_PM */