device/azalia_device: Drop unused function parameter

The `dev` parameter of the `azalia_codecs_init()` function is not used.
Remove it, and update all call sites accordingly.

Change-Id: Idbe4a6ee5e81d5a7fd451fb83e0fe91bd0c09f0e
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/59119
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Angel Pons 2021-11-10 18:10:38 +01:00 committed by Paul Fagerburg
parent 94b3735ce1
commit aae6b55b2d
7 changed files with 8 additions and 8 deletions

View File

@ -270,7 +270,7 @@ void azalia_codec_init(u8 *base, int addr, const u32 *verb_table, u32 verb_table
mainboard_azalia_program_runtime_verbs(base, reg32);
}
void azalia_codecs_init(struct device *dev, u8 *base, u16 codec_mask)
void azalia_codecs_init(u8 *base, u16 codec_mask)
{
int i;
@ -300,7 +300,7 @@ void azalia_audio_init(struct device *dev)
if (codec_mask) {
printk(BIOS_DEBUG, "azalia_audio: codec_mask = %02x\n", codec_mask);
azalia_codecs_init(dev, base, codec_mask);
azalia_codecs_init(base, codec_mask);
}
}

View File

@ -24,7 +24,7 @@ int azalia_exit_reset(u8 *base);
u32 azalia_find_verb(const u32 *verb_table, u32 verb_table_bytes, u32 viddid, const u32 **verb);
int azalia_program_verb_table(u8 *base, const u32 *verbs, u32 verb_size);
void azalia_codec_init(u8 *base, int addr, const u32 *verb_table, u32 verb_table_bytes);
void azalia_codecs_init(struct device *dev, u8 *base, u16 codec_mask);
void azalia_codecs_init(u8 *base, u16 codec_mask);
void azalia_audio_init(struct device *dev);
extern struct device_operations default_azalia_audio_ops;

View File

@ -110,7 +110,7 @@ static void azalia_init(struct device *dev)
if (codec_mask) {
printk(BIOS_DEBUG, "Azalia: codec_mask = %02x\n", codec_mask);
azalia_codecs_init(dev, base, codec_mask);
azalia_codecs_init(base, codec_mask);
}
/* Enable dynamic clock gating */

View File

@ -95,7 +95,7 @@ static void azalia_init(struct device *dev)
if (codec_mask) {
printk(BIOS_DEBUG, "Azalia: codec_mask = %02x\n", codec_mask);
azalia_codecs_init(dev, base, codec_mask);
azalia_codecs_init(base, codec_mask);
}
}

View File

@ -78,7 +78,7 @@ static void azalia_init(struct device *dev)
if (codec_mask) {
printk(BIOS_DEBUG, "Azalia: codec_mask = %02x\n", codec_mask);
azalia_codecs_init(dev, base, codec_mask);
azalia_codecs_init(base, codec_mask);
}
}

View File

@ -78,7 +78,7 @@ static void azalia_init(struct device *dev)
if (codec_mask) {
printk(BIOS_DEBUG, "Azalia: codec_mask = %02x\n", codec_mask);
azalia_codecs_init(dev, base, codec_mask);
azalia_codecs_init(base, codec_mask);
}
}

View File

@ -116,7 +116,7 @@ static void azalia_init(struct device *dev)
if (codec_mask) {
printk(BIOS_DEBUG, "Azalia: codec_mask = %02x\n", codec_mask);
azalia_codecs_init(dev, base, codec_mask);
azalia_codecs_init(base, codec_mask);
}
/* Enable dynamic clock gating */