summaryrefslogtreecommitdiffstats
path: root/net/mac802154
diff options
context:
space:
mode:
authorSekhar Nori <nsekhar@ti.com>2014-05-20 15:41:37 +0530
committerDavid S. Miller <davem@davemloft.net>2014-05-22 15:22:36 -0400
commit68bc74feb0ce1cc79cb2b5bbdfc592f30f37dab8 (patch)
treec1a912d8f20ae13b1d5a28283561f4dd63d9b299 /net/mac802154
parentcb421c2845dfb496637dd00c6780682bb3b1e3c5 (diff)
downloadop-kernel-dev-68bc74feb0ce1cc79cb2b5bbdfc592f30f37dab8.zip
op-kernel-dev-68bc74feb0ce1cc79cb2b5bbdfc592f30f37dab8.tar.gz
net: davinci_emac: fix oops caused by uninitialized ndev->dev
Commit e194312854edc22a2faf1931b3c0608fe20cb969 (drivers: net: davinci_cpdma: Convert kzalloc() to devm_kzalloc()) triggered a bug in emac_probe() wherein dev member of net_device is used for devres allocations even before it is initialized. This patch fixes that by using the struct device in platform_device instead. While at it, use &pdev->dev consistently for console messages instead of using ndev->dev for just one case and remove an unnecessary line continuation. Reported-by: Kevin Hilman <khilman@linaro.org> Helped-by: George Cherian <george.cherian@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com> Acked-by: Mugunthan V N <mugunthanvnm@ti.com> Tested-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Tested-by: Kevin Hilman <khilman@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac802154')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud