mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-28 16:52:18 +00:00
Merge branch 'for-next' of git://github.com/cminyard/linux-ipmi.git
This commit is contained in:
commit
3def907c81
@ -321,6 +321,9 @@ static int ipmb_probe(struct i2c_client *client)
|
|||||||
ipmb_dev->miscdev.name = devm_kasprintf(&client->dev, GFP_KERNEL,
|
ipmb_dev->miscdev.name = devm_kasprintf(&client->dev, GFP_KERNEL,
|
||||||
"%s%d", "ipmb-",
|
"%s%d", "ipmb-",
|
||||||
client->adapter->nr);
|
client->adapter->nr);
|
||||||
|
if (!ipmb_dev->miscdev.name)
|
||||||
|
return -ENOMEM;
|
||||||
|
|
||||||
ipmb_dev->miscdev.fops = &ipmb_fops;
|
ipmb_dev->miscdev.fops = &ipmb_fops;
|
||||||
ipmb_dev->miscdev.parent = &client->dev;
|
ipmb_dev->miscdev.parent = &client->dev;
|
||||||
ret = misc_register(&ipmb_dev->miscdev);
|
ret = misc_register(&ipmb_dev->miscdev);
|
||||||
|
@ -118,7 +118,7 @@ static int ipmi_pci_probe(struct pci_dev *pdev,
|
|||||||
if (io.irq)
|
if (io.irq)
|
||||||
io.irq_setup = ipmi_std_irq_setup;
|
io.irq_setup = ipmi_std_irq_setup;
|
||||||
|
|
||||||
dev_info(&pdev->dev, "%pR regsize %d spacing %d irq %d\n",
|
dev_info(&pdev->dev, "%pR regsize %u spacing %u irq %d\n",
|
||||||
&pdev->resource[0], io.regsize, io.regspacing, io.irq);
|
&pdev->resource[0], io.regsize, io.regspacing, io.irq);
|
||||||
|
|
||||||
return ipmi_si_add_smi(&io);
|
return ipmi_si_add_smi(&io);
|
||||||
|
Loading…
Reference in New Issue
Block a user