powerpc/fsl_msi: Use chip_data not handler_data
authorMilton Miller <miltonm@bga.com>
Tue, 10 May 2011 19:30:11 +0000 (19:30 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 19 May 2011 05:31:45 +0000 (15:31 +1000)
commitd1921bcdeee66c3d1704ef753dc74464856e4b7f
treec8cb951755a6b614cac34114f5c24d2be76762a3
parent6c4c82e20a1b476589c1e2b0b7c2adc783c93006
powerpc/fsl_msi: Use chip_data not handler_data

handler_data should be reserved for flow handlers on the dependent
irq, not consumed by the parent irq code that is part of the irq_chip
code.  The msi_data pointer was already set in msidesc->irqhost->hostdata
and being copied to irq_data->chipdata in the msidesc->irqhost->map()
method called via create_irq_mapping, so we can obtain the pointer
from there and free the instance it in teardown_msi_irqs.

Also remove the unnecessary cast of irq_get_handler_data in the
cascade handler, which is the demux flow handler of the parent
msi interrupt.  (This is the expected usage for handler_data).

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/sysdev/fsl_msi.c
This page took 0.025687 seconds and 5 git commands to generate.