Skip to content

Commit

Permalink
powerpc/fsl_soc: gianfar: don't probe disabled devices
Browse files Browse the repository at this point in the history
Freescale ships MPC8315E-RDB boards in two variants:

1. With TSEC1 ethernet support and USB UTMI PHY;
2. Without TSEC1 support, but with USB ULPI PHY in addition.

For the second case U-Boot will add status = "disabled"; property
into the TSEC1 node, so Linux should not try to probe it.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Anton Vorontsov authored and Kumar Gala committed Jul 16, 2008
1 parent c0a2015 commit 69ad7e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/powerpc/sysdev/fsl_soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@ static int __init gfar_of_init(void)
const phandle *ph;
int n_res = 2;

if (!of_device_is_available(np))
continue;

memset(r, 0, sizeof(r));
memset(&gfar_data, 0, sizeof(gfar_data));

Expand Down

0 comments on commit 69ad7e7

Please sign in to comment.