mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 05:31:32 +00:00
dm: sound: wm8994: Drop wm8994_i2c_init()
This function has only one line in it. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
04660d6424
commit
9ca9f6d58b
1 changed files with 1 additions and 11 deletions
|
@ -61,16 +61,6 @@ static int bclk_divs[] = {
|
|||
640, 880, 960, 1280, 1760, 1920
|
||||
};
|
||||
|
||||
/*
|
||||
* Initialise I2C for wm 8994
|
||||
*
|
||||
* @param bus no i2c bus number in which wm8994 is connected
|
||||
*/
|
||||
static void wm8994_i2c_init(int bus_no)
|
||||
{
|
||||
i2c_set_bus_num(bus_no);
|
||||
}
|
||||
|
||||
/*
|
||||
* Writes value to a device register through i2c
|
||||
*
|
||||
|
@ -918,7 +908,7 @@ int wm8994_init(const void *blob, enum en_audio_interface aif_id,
|
|||
|
||||
/* shift the device address by 1 for 7 bit addressing */
|
||||
wm8994_info.i2c_addr = pcodec_info.i2c_dev_addr;
|
||||
wm8994_i2c_init(pcodec_info.i2c_bus);
|
||||
i2c_set_bus_num(pcodec_info.i2c_bus);
|
||||
ret = wm8994_device_init(&wm8994_info);
|
||||
if (ret < 0) {
|
||||
debug("%s: wm8994 codec chip init failed\n", __func__);
|
||||
|
|
Loading…
Add table
Reference in a new issue