Skip to content

Commit

Permalink
powerpc/cell: Use driver_data acessors, not platform_data in Axon MSI
Browse files Browse the repository at this point in the history
The Axon MSI driver incorrectly uses platform_data, rather than
the proper accessors for driver_data.

Signed-off-by: Michael Ellerman <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
  • Loading branch information
mpe authored and ozbenh committed Jun 15, 2009
1 parent e468455 commit 86c2765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/platforms/cell/axon_msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ static struct irq_host_ops msic_host_ops = {

static int axon_msi_shutdown(struct of_device *device)
{
struct axon_msic *msic = device->dev.platform_data;
struct axon_msic *msic = dev_get_drvdata(&device->dev);
u32 tmp;

pr_debug("axon_msi: disabling %s\n",
Expand Down Expand Up @@ -416,7 +416,7 @@ static int axon_msi_probe(struct of_device *device,
msic->read_offset = dcr_read(msic->dcr_host, MSIC_WRITE_OFFSET_REG)
& MSIC_FIFO_SIZE_MASK;

device->dev.platform_data = msic;
dev_set_drvdata(&device->dev, msic);

ppc_md.setup_msi_irqs = axon_msi_setup_msi_irqs;
ppc_md.teardown_msi_irqs = axon_msi_teardown_msi_irqs;
Expand Down

0 comments on commit 86c2765

Please sign in to comment.