From: Simon Glass Date: Mon, 3 Dec 2018 11:37:33 +0000 (-0700) Subject: dm: sound: wm8994: Drop wm8994_i2c_init() X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=9ca9f6d58b77bbd9ece37cd61bbff068611cc0d2;p=u-boot.git dm: sound: wm8994: Drop wm8994_i2c_init() This function has only one line in it. Drop it. Signed-off-by: Simon Glass --- diff --git a/drivers/sound/wm8994.c b/drivers/sound/wm8994.c index be27e2b1e7..a888a0b4c9 100644 --- a/drivers/sound/wm8994.c +++ b/drivers/sound/wm8994.c @@ -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__);