diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2019-07-26 02:40:00 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-08-02 14:58:16 +0300 |
commit | 0fc6041d7abc449198f895906f7ffac7647b603a (patch) | |
tree | 8e765992a02f0303ee0a0be65b2a496f4f721815 /drivers/soundwire | |
parent | be46cfba5452f7d0ccb1e74c32d44457bc34833e (diff) | |
download | linux-0fc6041d7abc449198f895906f7ffac7647b603a.tar.xz |
soundwire: intel: remove BIOS work-arounds
the values passed by all existing BIOS are fine, let's use them as is.
The existing code must have been needed only on early prototypes.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20190725234032.21152-9-pierre-louis.bossart@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/soundwire')
-rw-r--r-- | drivers/soundwire/intel.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c index 317873bc0555..c82ca4e13de7 100644 --- a/drivers/soundwire/intel.c +++ b/drivers/soundwire/intel.c @@ -801,17 +801,6 @@ static int intel_prop_read(struct sdw_bus *bus) /* Initialize with default handler to read all DisCo properties */ sdw_master_read_prop(bus); - /* BIOS is not giving some values correctly. So, lets override them */ - bus->prop.num_clk_freq = 1; - bus->prop.clk_freq = devm_kcalloc(bus->dev, bus->prop.num_clk_freq, - sizeof(*bus->prop.clk_freq), - GFP_KERNEL); - if (!bus->prop.clk_freq) - return -ENOMEM; - - bus->prop.clk_freq[0] = bus->prop.max_clk_freq; - bus->prop.err_threshold = 5; - return 0; } |