ALSA: ice17xx: Use standard printk helpers
Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
@@ -163,7 +163,8 @@ static int snd_ice1712_ews88mt_chip_select(struct snd_ice1712 *ice, int chip_mas
|
||||
|
||||
__error:
|
||||
snd_i2c_unlock(ice->i2c);
|
||||
snd_printk(KERN_ERR "AK4524 chip select failed, check cable to the front module\n");
|
||||
dev_err(ice->card->dev,
|
||||
"AK4524 chip select failed, check cable to the front module\n");
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
@@ -174,7 +175,7 @@ static void ews88mt_ak4524_lock(struct snd_akm4xxx *ak, int chip)
|
||||
unsigned char tmp;
|
||||
/* assert AK4524 CS */
|
||||
if (snd_ice1712_ews88mt_chip_select(ice, ~(1 << chip) & 0x0f) < 0)
|
||||
snd_printk(KERN_ERR "fatal error (ews88mt chip select)\n");
|
||||
dev_err(ice->card->dev, "fatal error (ews88mt chip select)\n");
|
||||
snd_ice1712_save_gpio_status(ice);
|
||||
tmp = ICE1712_EWS88_SERIAL_DATA |
|
||||
ICE1712_EWS88_SERIAL_CLOCK |
|
||||
@@ -456,7 +457,7 @@ static int snd_ice1712_ews_init(struct snd_ice1712 *ice)
|
||||
|
||||
/* create i2c */
|
||||
if ((err = snd_i2c_bus_create(ice->card, "ICE1712 GPIO 1", NULL, &ice->i2c)) < 0) {
|
||||
snd_printk(KERN_ERR "unable to create I2C bus\n");
|
||||
dev_err(ice->card->dev, "unable to create I2C bus\n");
|
||||
return err;
|
||||
}
|
||||
ice->i2c->private_data = ice;
|
||||
@@ -469,7 +470,8 @@ static int snd_ice1712_ews_init(struct snd_ice1712 *ice)
|
||||
ICE1712_6FIRE_PCF9554_ADDR,
|
||||
&spec->i2cdevs[EWS_I2C_6FIRE]);
|
||||
if (err < 0) {
|
||||
snd_printk(KERN_ERR "PCF9554 initialization failed\n");
|
||||
dev_err(ice->card->dev,
|
||||
"PCF9554 initialization failed\n");
|
||||
return err;
|
||||
}
|
||||
snd_ice1712_6fire_write_pca(ice, PCF9554_REG_CONFIG, 0x80);
|
||||
@@ -834,7 +836,7 @@ static int snd_ice1712_6fire_read_pca(struct snd_ice1712 *ice, unsigned char reg
|
||||
byte = 0;
|
||||
if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_6FIRE], &byte, 1) != 1) {
|
||||
snd_i2c_unlock(ice->i2c);
|
||||
printk(KERN_ERR "cannot read pca\n");
|
||||
dev_err(ice->card->dev, "cannot read pca\n");
|
||||
return -EIO;
|
||||
}
|
||||
snd_i2c_unlock(ice->i2c);
|
||||
|
Reference in New Issue
Block a user