]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc/sgy_cts1000: Fix gpio_halt_cb()'s signature
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Tue, 26 Jul 2016 04:45:01 +0000 (21:45 -0700)
committerScott Wood <oss@buserror.net>
Sun, 25 Sep 2016 04:59:51 +0000 (23:59 -0500)
commit625f3eea40024d0fc6562fc737761bba696c662b
tree41afa31616c20bb37bd741ee89b687527a7b7421
parent49bf9279cd3edb9d7178223f52d4656dbf2e46b5
powerpc/sgy_cts1000: Fix gpio_halt_cb()'s signature

Halt callback in struct machdep_calls is declared with __noreturn
attribute, so omitting that attribute in gpio_halt_cb()'s signatrue
results in compilation error.

Change the signature to address the problem as well as change the code
of the function to avoid ever returning from the function.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Scott Wood <oss@buserror.net>
arch/powerpc/platforms/85xx/sgy_cts1000.c