Skip to content
Commit 9628c3e8 authored by Sergei Antonov's avatar Sergei Antonov Committed by Tom Rini
Browse files

net: ftmac100: simplify priv->iobase casting



Replace 'phys_addr_t iobase' with 'struct ftmac100 *ftmac100' in
struct ftmac100_data. It allows to remove casting in a number of places.

Since priv->iobase is phys_addr_t, use phys_to_virt() to make
a pointer from it.

Signed-off-by: default avatarSergei Antonov <saproj@gmail.com>
Reviewed-by: default avatarRick Chen <rick@andestech.com>
parent e9a1d8bf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment