audio_kernel: Fix compilation issues during kernel upgrade
Updated WCD937x, WSA881x-analog and bolero drivers for successful compilation on kernel6.0 for holi. Change-Id: Ia91a999f825570b3d7123842f0aad3740c4d25ed
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
e7118564d5
commit
b6e311a3d8
@@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/of_platform.h>
|
||||
@@ -106,7 +107,7 @@ int bolero_rsc_clk_reset(struct device *dev, int clk_id)
|
||||
int count = 0;
|
||||
|
||||
if (!dev) {
|
||||
pr_err("%s: dev is null %d\n", __func__);
|
||||
pr_err("%s: dev is null\n", __func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -153,7 +154,7 @@ void bolero_clk_rsc_enable_all_clocks(struct device *dev, bool enable)
|
||||
int i = 0;
|
||||
|
||||
if (!dev) {
|
||||
pr_err("%s: dev is null %d\n", __func__);
|
||||
pr_err("%s: dev is null\n", __func__);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -455,7 +456,7 @@ void bolero_clk_rsc_fs_gen_request(struct device *dev, bool enable)
|
||||
struct bolero_clk_rsc *priv = NULL;
|
||||
|
||||
if (!dev) {
|
||||
pr_err("%s: dev is null %d\n", __func__);
|
||||
pr_err("%s: dev is null\n", __func__);
|
||||
return;
|
||||
}
|
||||
clk_dev = bolero_get_rsc_clk_device_ptr(dev->parent);
|
||||
@@ -531,7 +532,7 @@ int bolero_clk_rsc_request_clock(struct device *dev,
|
||||
bool mux_switch = false;
|
||||
|
||||
if (!dev) {
|
||||
pr_err("%s: dev is null %d\n", __func__);
|
||||
pr_err("%s: dev is null\n", __func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
if ((clk_id_req < 0 || clk_id_req >= MAX_CLK) &&
|
||||
|
@@ -107,7 +107,6 @@ static struct regmap_irq_chip wcd937x_regmap_irq_chip = {
|
||||
//#if IS_ENABLED(CONFIG_AUDIO_QGKI)
|
||||
.clear_ack = 1,
|
||||
//#endif
|
||||
.mask_writeonly = 1,
|
||||
.type_base = WCD937X_DIGITAL_INTR_LEVEL_0,
|
||||
.runtime_pm = false,
|
||||
.handle_post_irq = wcd937x_handle_post_irq,
|
||||
|
@@ -1584,7 +1584,7 @@ err:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int wsa881x_i2c_remove(struct i2c_client *client)
|
||||
static void wsa881x_i2c_remove(struct i2c_client *client)
|
||||
{
|
||||
struct wsa881x_pdata *wsa881x = client->dev.platform_data;
|
||||
|
||||
@@ -1601,7 +1601,6 @@ static int wsa881x_i2c_remove(struct i2c_client *client)
|
||||
}
|
||||
i2c_set_clientdata(client, NULL);
|
||||
kfree(wsa881x);
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
|
Reference in New Issue
Block a user