[PATCH] ppc32: Fix pointer check for MPC8540 ADS device
Kumar Gala
galak at freescale.com
Thu Jun 30 15:01:28 EST 2005
Editor snafu in which the call to ppc_sys_get_pdata got inside the if
check instead of before it. Oops.
Signed-off-by: Kumar Gala <kumar.gala at freescale.com>
---
commit e82df07a507588f1f0cc9da544934b4a737e2e84
tree 2e9642efcb34f846444bc288d3c4d7c384c00348
parent 6bd7d9f21de5992db4851f9be88c2e20b967f3d2
author Kumar K. Gala <kumar.gala at freescale.com> Thu, 30 Jun 2005 01:35:53 -0500
committer Kumar K. Gala <kumar.gala at freescale.com> Thu, 30 Jun 2005 01:35:53 -0500
arch/ppc/platforms/85xx/mpc8540_ads.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/ppc/platforms/85xx/mpc8540_ads.c b/arch/ppc/platforms/85xx/mpc8540_ads.c
--- a/arch/ppc/platforms/85xx/mpc8540_ads.c
+++ b/arch/ppc/platforms/85xx/mpc8540_ads.c
@@ -111,8 +111,8 @@ mpc8540ads_setup_arch(void)
memcpy(pdata->mac_addr, binfo->bi_enet1addr, 6);
}
+ pdata = (struct gianfar_platform_data *) ppc_sys_get_pdata(MPC85xx_FEC);
if (pdata) {
- pdata = (struct gianfar_platform_data *) ppc_sys_get_pdata(MPC85xx_FEC);
pdata->board_flags = 0;
pdata->interruptPHY = MPC85xx_IRQ_EXT5;
pdata->phyid = 3;
More information about the Linuxppc-embedded
mailing list