Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bcbda35c authored by Kumar Gala's avatar Kumar Gala Committed by Linus Torvalds
Browse files

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



Editor snafu in which the call to ppc_sys_get_pdata got inside the if check
instead of before it.  Oops.

Signed-off-by: default avatarKumar Gala <kumar.gala@freescale.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 6931dfc9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -111,8 +111,8 @@ mpc8540ads_setup_arch(void)
		memcpy(pdata->mac_addr, binfo->bi_enet1addr, 6);
	}

	if (pdata) {
	pdata = (struct gianfar_platform_data *) ppc_sys_get_pdata(MPC85xx_FEC);
	if (pdata) {
		pdata->board_flags = 0;
		pdata->interruptPHY = MPC85xx_IRQ_EXT5;
		pdata->phyid = 3;