]> git.baikalelectronics.ru Git - 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)
commitc850194ec344eb25c95a91a778b2fd936be95a6b
tree1787846466e89819c01d9db03cd05dc79ce628ad
parentb45c6dcb84c8265fbaac35a087e7282b3ccc42d8
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