Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 60927
b: refs/heads/master
c: bce9451
h: refs/heads/master
i:
  60925: e3f1144
  60923: ca8f1db
  60919: a53ec9d
  60911: 9036c86
  60895: 32e7402
  60863: d562a4f
  60799: e2988f4
  60671: e9fa1c9
  60415: c418ddf
v: v3
  • Loading branch information
Geert Uytterhoeven authored and Linus Torvalds committed Jul 17, 2007
1 parent 134c9b1 commit 5a19100
Show file tree
Hide file tree
Showing 5 changed files with 23 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: cca9a6cc580b504a2575d505ab072ebf0872e016
refs/heads/master: bce9451310eb66fbbd77bf22e8160079700691f8
15 changes: 14 additions & 1 deletion trunk/arch/powerpc/platforms/cell/spu_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <linux/mm.h>
#include <linux/io.h>
#include <linux/mutex.h>
#include <linux/linux_logo.h>
#include <asm/spu.h>
#include <asm/spu_priv1.h>
#include <asm/xmon.h>
Expand Down Expand Up @@ -656,12 +657,24 @@ static int __init init_spu_base(void)

ret = spu_enumerate_spus(create_spu);

if (ret) {
if (ret < 0) {
printk(KERN_WARNING "%s: Error initializing spus\n",
__FUNCTION__);
goto out_unregister_sysdev_class;
}

if (ret > 0) {
/*
* We cannot put the forward declaration in
* <linux/linux_logo.h> because of conflicting session type
* conflicts for const and __initdata with different compiler
* versions
*/
extern const struct linux_logo logo_spe_clut224;

fb_append_extra_logo(&logo_spe_clut224, ret);
}

xmon_register_spus(&spu_full_list);

spu_add_sysdev_attr(&attr_stat);
Expand Down
4 changes: 3 additions & 1 deletion trunk/arch/powerpc/platforms/cell/spu_manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ static int __init of_enumerate_spus(int (*fn)(void *data))
{
int ret;
struct device_node *node;
unsigned int n = 0;

ret = -ENODEV;
for (node = of_find_node_by_type(NULL, "spe");
Expand All @@ -289,8 +290,9 @@ static int __init of_enumerate_spus(int (*fn)(void *data))
__FUNCTION__, node->name);
break;
}
n++;
}
return ret;
return ret ? ret : n;
}

static int __init of_create_spu(struct spu *spu, void *data)
Expand Down
6 changes: 4 additions & 2 deletions trunk/arch/powerpc/platforms/ps3/spu.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,11 +405,13 @@ static int __init ps3_enumerate_spus(int (*fn)(void *data))
}
}

if (result)
if (result) {
printk(KERN_WARNING "%s:%d: Error initializing spus\n",
__func__, __LINE__);
return result;
}

return result;
return num_resource_id;
}

const struct spu_management_ops spu_management_ps3_ops = {
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/video/logo/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ if LOGO
config FB_LOGO_EXTRA
bool
depends on FB
default y if SPU_BASE

config LOGO_LINUX_MONO
bool "Standard black and white Linux logo"
Expand Down

0 comments on commit 5a19100

Please sign in to comment.