summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/mpic_u3msi.c
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2007-09-20 16:36:50 +1000
committerPaul Mackerras <paulus@samba.org>2007-10-03 09:11:39 +1000
commitd385366a9b96fc3f4705f8513adccceaa0515f97 (patch)
tree056fe2a7662ea4d0e5e99010f3d9f4d397d99435 /arch/powerpc/sysdev/mpic_u3msi.c
parentfcbe8090a001522f98ad6f3146f0a1d9fa473821 (diff)
downloadop-kernel-dev-d385366a9b96fc3f4705f8513adccceaa0515f97.zip
op-kernel-dev-d385366a9b96fc3f4705f8513adccceaa0515f97.tar.gz
[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>
Diffstat (limited to 'arch/powerpc/sysdev/mpic_u3msi.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud