Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138505
b: refs/heads/master
c: c026c98
h: refs/heads/master
i:
  138503: f4dd45b
v: v3
  • Loading branch information
Anton Vorontsov authored and Kumar Gala committed Mar 9, 2009
1 parent 15a8047 commit c830cb6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 30c404699dd650f213d480d263c775915a0e1297
refs/heads/master: c026c98739c7e435440e76cbcd96e0f8ebeeada0
3 changes: 2 additions & 1 deletion trunk/arch/powerpc/platforms/83xx/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/stddef.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/of.h>

#include <asm/io.h>
#include <asm/prom.h>
Expand Down Expand Up @@ -210,7 +211,7 @@ int mpc837x_usb_cfg(void)
int ret = 0;

np = of_find_compatible_node(NULL, NULL, "fsl-usb2-dr");
if (!np)
if (!np || !of_device_is_available(np))
return -ENODEV;
prop = of_get_property(np, "phy_type", NULL);

Expand Down
4 changes: 4 additions & 0 deletions trunk/arch/powerpc/sysdev/fsl_soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <linux/module.h>
#include <linux/device.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/phy.h>
#include <linux/phy_fixed.h>
Expand Down Expand Up @@ -328,6 +329,9 @@ static int __init fsl_usb_of_init(void)
struct fsl_usb2_platform_data usb_data;
const unsigned char *prop = NULL;

if (!of_device_is_available(np))
continue;

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

Expand Down

0 comments on commit c830cb6

Please sign in to comment.