]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Simplify rtas_change_msi() error semantics
authorMichael Ellerman <michael@ellerman.id.au>
Thu, 20 Sep 2007 06:36:50 +0000 (16:36 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 2 Oct 2007 23:11:39 +0000 (09:11 +1000)
commit53fbfc2aec6ad0b3d463f8baecb16645659149f9
tree056fe2a7662ea4d0e5e99010f3d9f4d397d99435
parent5dc7a0a0e68339cb6745b3d211fe7d2e721fe87d
[POWERPC] Simplify rtas_change_msi() error semantics

Currently rtas_change_msi() returns either the error code from RTAS, or if
the RTAS call succeeded the number of irqs that were configured by RTAS.
This makes checking the return value more complicated than it needs to be.

Instead, have rtas_change_msi() check that the number of irqs configured by
RTAS is equal to what we requested - and return an error otherwise. This makes
the return semantics match the usual 0 for success, something else for error.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/msi.c