2
0
forked from Ivasoft/openwrt

generic: rtl8366: introduce rtl8366_smi_alloc

SVN-Revision: 22195
This commit is contained in:
Gabor Juhos
2010-07-15 13:05:16 +00:00
parent c7bc8fb46c
commit b093cec6cc
4 changed files with 20 additions and 9 deletions

View File

@@ -1160,14 +1160,12 @@ static int __init rtl8366s_probe(struct platform_device *pdev)
goto err_out;
}
smi = kzalloc(sizeof(*smi), GFP_KERNEL);
smi = rtl8366_smi_alloc(&pdev->dev);
if (!smi) {
dev_err(&pdev->dev, "no memory for private data\n");
err = -ENOMEM;
goto err_out;
}
smi->parent = &pdev->dev;
smi->gpio_sda = pdata->gpio_sda;
smi->gpio_sck = pdata->gpio_sck;
smi->ops = &rtl8366s_smi_ops;