ipmi: Remove warning if no slave address is present
It's just noise, really, lots of systems don't have it. Reported-by: Kamlakant Patel <kamlakantp@marvell.com> Signed-off-by: Corey Minyard <cminyard@mvista.com>hifive-unleashed-5.2
parent
44f56a39ad
commit
ed6c3a6d89
|
@ -188,12 +188,10 @@ static int platform_ipmi_probe(struct platform_device *pdev)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
rv = device_property_read_u8(&pdev->dev, "slave-addr", &slave_addr);
|
rv = device_property_read_u8(&pdev->dev, "slave-addr", &slave_addr);
|
||||||
if (rv) {
|
if (rv)
|
||||||
dev_warn(&pdev->dev, "device has no slave-addr property\n");
|
|
||||||
io.slave_addr = 0x20;
|
io.slave_addr = 0x20;
|
||||||
} else {
|
else
|
||||||
io.slave_addr = slave_addr;
|
io.slave_addr = slave_addr;
|
||||||
}
|
|
||||||
|
|
||||||
io.irq = platform_get_irq(pdev, 0);
|
io.irq = platform_get_irq(pdev, 0);
|
||||||
if (io.irq > 0)
|
if (io.irq > 0)
|
||||||
|
|
|
@ -1995,7 +1995,7 @@ static int dmi_ipmi_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
rv = device_property_read_u8(&pdev->dev, "slave-addr", &slave_addr);
|
rv = device_property_read_u8(&pdev->dev, "slave-addr", &slave_addr);
|
||||||
if (rv)
|
if (rv)
|
||||||
dev_warn(&pdev->dev, "device has no slave-addr property");
|
slave_addr = 0x20;
|
||||||
|
|
||||||
return new_ssif_client(i2c_addr, NULL, 0,
|
return new_ssif_client(i2c_addr, NULL, 0,
|
||||||
slave_addr, SI_SMBIOS, &pdev->dev);
|
slave_addr, SI_SMBIOS, &pdev->dev);
|
||||||
|
|
Loading…
Reference in New Issue