diff options
author | Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> | 2007-08-14 12:30:13 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-08-15 01:12:50 -0400 |
commit | 2de69124e86682c3427adb4136e097854841e467 (patch) | |
tree | 929040491013278a31a598a57a4b6e384d28a1cc /arch | |
parent | 55a910a81d0c3014abc20b9efa73c595b3e68339 (diff) |
[POWERPC] ps3: Fix no storage devices found
Fix probing of PS3 storage devices: in the success case, we should set
`error' to zero, not `result'.
Without this patch no storage devices are found.
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/ps3/device-init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/ps3/device-init.c b/arch/powerpc/platforms/ps3/device-init.c index e23a5a874ad3..ce15cada88d4 100644 --- a/arch/powerpc/platforms/ps3/device-init.c +++ b/arch/powerpc/platforms/ps3/device-init.c | |||
@@ -372,7 +372,7 @@ static int ps3_storage_wait_for_device(const struct ps3_repository_device *repo) | |||
372 | notify_event->dev_type == repo->dev_type) { | 372 | notify_event->dev_type == repo->dev_type) { |
373 | pr_debug("%s:%u: device ready: dev_id %u\n", __func__, | 373 | pr_debug("%s:%u: device ready: dev_id %u\n", __func__, |
374 | __LINE__, repo->dev_id); | 374 | __LINE__, repo->dev_id); |
375 | result = 0; | 375 | error = 0; |
376 | break; | 376 | break; |
377 | } | 377 | } |
378 | 378 | ||