ata: Convert dev_printk(KERN_<LEVEL> to dev_<level>(
dev_<level> calls take less code than dev_printk(KERN_<LEVEL> and reducing object size is good. Coalesce formats for easier grep. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
52bd4978c6
commit
a52f514c91
|
@ -474,14 +474,14 @@ static int cmd64x_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
|
||||||
/* check for enabled ports */
|
/* check for enabled ports */
|
||||||
pci_read_config_byte(pdev, CNTRL, ®);
|
pci_read_config_byte(pdev, CNTRL, ®);
|
||||||
if (!port_ok)
|
if (!port_ok)
|
||||||
dev_printk(KERN_NOTICE, &pdev->dev, "Mobility Bridge detected, ignoring CNTRL port enable/disable\n");
|
dev_notice(&pdev->dev, "Mobility Bridge detected, ignoring CNTRL port enable/disable\n");
|
||||||
if (port_ok && cntrl_ch0_ok && !(reg & CNTRL_CH0)) {
|
if (port_ok && cntrl_ch0_ok && !(reg & CNTRL_CH0)) {
|
||||||
dev_printk(KERN_NOTICE, &pdev->dev, "Primary port is disabled\n");
|
dev_notice(&pdev->dev, "Primary port is disabled\n");
|
||||||
ppi[0] = &ata_dummy_port_info;
|
ppi[0] = &ata_dummy_port_info;
|
||||||
|
|
||||||
}
|
}
|
||||||
if (port_ok && !(reg & CNTRL_CH1)) {
|
if (port_ok && !(reg & CNTRL_CH1)) {
|
||||||
dev_printk(KERN_NOTICE, &pdev->dev, "Secondary port is disabled\n");
|
dev_notice(&pdev->dev, "Secondary port is disabled\n");
|
||||||
ppi[1] = &ata_dummy_port_info;
|
ppi[1] = &ata_dummy_port_info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue