net/ethoc: use priv instead of dev internally
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 5 Aug 2016 15:26:16 +0000 (18:26 +0300)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 15 Aug 2016 18:34:46 +0000 (13:34 -0500)
commita84a757ae7cf844a5ec3e7c32226b48667dedac2
treea44d2275a89a8e09dd05235e07785334b8b38c69
parentf0727120a7b0cfb0f9ba6c3ed46cf970d9182c74
net/ethoc: use priv instead of dev internally

Don't use physical base address of registers directly, ioremap it first.
Save pointer in private struct ethoc and use that struct in all internal
functions.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/ethoc.c