]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: dpaa2: fix and improve dpaa2-ptp driver
authorYangbo Lu <yangbo.lu@nxp.com>
Mon, 8 Oct 2018 07:44:30 +0000 (15:44 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Oct 2018 17:23:22 +0000 (10:23 -0700)
commit590ac2ffde325da25371e169fc71826f2d118b6b
tree1787846466e89819c01d9db03cd05dc79ce628ad
parent15b49f360c7a4f91eace4f601b4d669a1b248c7c
net: dpaa2: fix and improve dpaa2-ptp driver

This patch is to fix and improve dpaa2-ptp driver
in some places.

- Fixed the return for some functions.
- Replaced kzalloc with devm_kzalloc.
- Removed dev_set_drvdata(dev, NULL).
- Made ptp_dpaa2_caps const.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c