diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-07-15 13:05:16 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-07-15 13:05:16 +0000 |
commit | 6ccacc5e4f961ca89bd6cc011ef6c29ae1962efa (patch) | |
tree | 51d59fc34fa30e5ef09f2029caa877ee0c1c4baa /target/linux/generic/files/drivers/net/phy/rtl8366s.c | |
parent | 430322ad5503bd865116cd48121873c917251fec (diff) | |
download | upstream-6ccacc5e4f961ca89bd6cc011ef6c29ae1962efa.tar.gz upstream-6ccacc5e4f961ca89bd6cc011ef6c29ae1962efa.tar.bz2 upstream-6ccacc5e4f961ca89bd6cc011ef6c29ae1962efa.zip |
generic: rtl8366: introduce rtl8366_smi_alloc
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22195 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/rtl8366s.c')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/rtl8366s.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366s.c b/target/linux/generic/files/drivers/net/phy/rtl8366s.c index 923f51a977..6f3fdd5092 100644 --- a/target/linux/generic/files/drivers/net/phy/rtl8366s.c +++ b/target/linux/generic/files/drivers/net/phy/rtl8366s.c @@ -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; |