[PATCH] ppc32: Fix pointer check for MPC8540 ADS device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>

---
commit e82df07a507588f1f0cc9da544934b4a737e2e84
tree 2e9642efcb34f846444bc288d3c4d7c384c00348
parent 6bd7d9f21de5992db4851f9be88c2e20b967f3d2
author Kumar K. Gala <[email protected]> Thu, 30 Jun 2005 01:35:53 -0500
committer Kumar K. Gala <[email protected]> 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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux