SMC91111: Fix compilation warnings
authorBhupesh Sharma <bhupesh.sharma@freescale.com>
Wed, 5 Feb 2014 07:39:56 +0000 (13:09 +0530)
committerTom Rini <trini@ti.com>
Fri, 21 Feb 2014 16:33:18 +0000 (11:33 -0500)
commitee456337c6820721a7e5f7819830179fcafa9fc2
tree986d0958d9e96394f86aa8b58391b80cfb284663
parent276511871b405ced706fc8dde11352940bd947c8
SMC91111: Fix compilation warnings

This patch fixes the following warning messages coming out of
'drivers/net/smc91111.h' when compiled for 'vexpress_aemv8a':

warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

Currently this issue seems to surface when SMSC is compiled for 64-bit
ARMv8 platforms, so the change is protected under CONFIG_ARM64, so that
it doesn't break other existing platforms.

In addition this patch tries to fix some checkpatch errors and warnings
(others related to camel-casing and volatile usage will be addressed
by a later patch).

This fix has been tested on both ARMv8 foundation model v1 and v2.

Signed-off-by: Bhupesh Sharma <bhupesh.sharma@freescale.com>
drivers/net/smc91111.h