Commit b24e88b4 authored by Arnd Bergmann's avatar Arnd Bergmann
Browse files

platform: cznic: use ffs() instead of __bf_shf()



__bf_shf() on a 64-bit variable causes a link failure during
compile-testing:

drivers-platform-cznic-turris-omnia-mcu-gpio.c:(.text):undefined-reference-to-__ffsdi2

Open-code this using ffs()-1, which has the same result but avoids
the library call.

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 64298928
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment