|
@@ -416,10 +416,8 @@ static int mrfld_gpio_probe(struct pci_dev *pdev, const struct pci_device_id *id
|
|
pcim_iounmap_regions(pdev, BIT(1));
|
|
pcim_iounmap_regions(pdev, BIT(1));
|
|
|
|
|
|
priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
|
|
priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
|
|
- if (!priv) {
|
|
|
|
- dev_err(&pdev->dev, "can't allocate chip data\n");
|
|
|
|
|
|
+ if (!priv)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
- }
|
|
|
|
|
|
|
|
priv->dev = &pdev->dev;
|
|
priv->dev = &pdev->dev;
|
|
priv->reg_base = pcim_iomap_table(pdev)[0];
|
|
priv->reg_base = pcim_iomap_table(pdev)[0];
|