Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73324
b: refs/heads/master
c: 7992344
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Nov 8, 2007
1 parent 5ff9eaa commit 8f4eecf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: aca71ef8827d11de243e30f170cfc126376803b4
refs/heads/master: 7992344fdeb9b3bc0ce6eacaf600eb801f231c30
10 changes: 6 additions & 4 deletions trunk/arch/powerpc/platforms/iseries/vio.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,15 +523,16 @@ static void __init get_viotape_info(struct device_node *vio_root)
static int __init iseries_vio_init(void)
{
struct device_node *vio_root;
int ret = -ENODEV;

if (!firmware_has_feature(FW_FEATURE_ISERIES))
return -ENODEV;
goto out;

iommu_vio_init();

vio_root = of_find_node_by_path("/vdevice");
if (!vio_root)
return -ENODEV;
goto out;

if (viopath_hostLp == HvLpIndexInvalid) {
vio_set_hostlp();
Expand All @@ -544,10 +545,11 @@ static int __init iseries_vio_init(void)
get_viocd_info(vio_root);
get_viotape_info(vio_root);

return 0;
ret = 0;

put_node:
of_node_put(vio_root);
return -ENODEV;
out:
return ret;
}
arch_initcall(iseries_vio_init);

0 comments on commit 8f4eecf

Please sign in to comment.