diff options
author | Simon Glass <sjg@chromium.org> | 2015-08-19 09:33:39 -0600 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2015-08-21 16:32:55 -0500 |
commit | 5c5e707a551458d3602d684ead28a97f18a4644f (patch) | |
tree | 860564d2c20cb6925ab4eeb2af3185e6a27c7125 /include/mpc5xxx.h | |
parent | c752cd2a30517c3a8c0742d807ce5053b747baa8 (diff) | |
download | u-boot-imx-5c5e707a551458d3602d684ead28a97f18a4644f.zip u-boot-imx-5c5e707a551458d3602d684ead28a97f18a4644f.tar.gz u-boot-imx-5c5e707a551458d3602d684ead28a97f18a4644f.tar.bz2 |
net: e1000: Prepare for driver model conversion
Since struct eth_device does not exist with CONFIG_DM_ETH defined, avoid
using it in the driver unless necessary. Most of the time it is better to
pass the private driver pointer anyway.
Also refactor the code so that code that the driver model implementation
will share are available in functions that can be called. Add stubs where
necessary.
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Tested-on: Apalis T30 2GB on Apalis Evaluation Board
Diffstat (limited to 'include/mpc5xxx.h')
0 files changed, 0 insertions, 0 deletions