staging: kpc2000: kpc_spi: remove unnecessary ulong repr of i/o addr
authorGeordan Neukum <gneukum1@gmail.com>
Wed, 5 Jun 2019 01:09:12 +0000 (01:09 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Jun 2019 13:05:02 +0000 (15:05 +0200)
commitfbf476ea29cc7294586dcf0b89f22593458deb0d
tree2795b01e7bf41724dd933f96c22e58603a7dd8ca
parent77a91f4b68b09774ab4608348557efaf262a6428
staging: kpc2000: kpc_spi: remove unnecessary ulong repr of i/o addr

The kpc_spi driver stashes off an unsigned long representation of the
i/o mapping returned by devm_ioremap_nocache(). This is unnecessary, as
the only use of the unsigned long repr is to eventually be re-cast to
an (u64 __iomem *). Instead of casting the (void __iomem *) to an
(unsigned long) then a (u64 __iomem *), just remove this intermediate
step. As this intermediary is no longer used, also remove it from its
structure.

Signed-off-by: Geordan Neukum <gneukum1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/kpc2000/kpc2000_spi.c