OSDN Git Service

reset: socfpga: fix for 64-bit compilation
authorDinh Nguyen <dinguyen@kernel.org>
Fri, 22 Sep 2017 18:42:47 +0000 (13:42 -0500)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 4 Oct 2017 08:29:44 +0000 (10:29 +0200)
commitf450f28e70a2378d9d6ded0932fe480055888cfa
treef18259410861b6a69016cfcac9be0ee75888d28f
parent544e3bf4f0e8278400f19ca7918a3cdf2548b4eb
reset: socfpga: fix for 64-bit compilation

The SoCFPGA Stratix10 reset controller has 32-bit registers. Thus, we
cannot use BITS_PER_LONG in computing the register and bit offset. Instead,
we should be using the width of the hardware register for the calculation.

Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/reset-socfpga.c