diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-03-24 13:09:34 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-03-24 13:09:34 -0700 |
commit | cc7feea39bed2951cc29af3ad642f39a99dfe8d3 (patch) | |
tree | d11b9f40044951128c9151b0fd88c13066dfec31 /arch/powerpc/sysdev/bestcomm | |
parent | 6f58d79598c184dc4f18ceddfaa5fa7483bce0a5 (diff) | |
parent | 7ea6fd7e2df041297298b5feb5b7b78a2b1a5310 (diff) | |
download | op-kernel-dev-cc7feea39bed2951cc29af3ad642f39a99dfe8d3.zip op-kernel-dev-cc7feea39bed2951cc29af3ad642f39a99dfe8d3.tar.gz |
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc:
[POWERPC] Fix Oops with TQM5200 on TQM5200
[POWERPC] mpc5200: Fix null dereference if bestcomm fails to initialize
[POWERPC] mpc5200-fec: Fix possible NULL dereference in mdio driver
[POWERPC] Fix crash in init_ipic_sysfs on efika
[POWERPC] Don't use 64k pages for ioremap on pSeries
Diffstat (limited to 'arch/powerpc/sysdev/bestcomm')
-rw-r--r-- | arch/powerpc/sysdev/bestcomm/bestcomm.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/bestcomm/bestcomm.c b/arch/powerpc/sysdev/bestcomm/bestcomm.c index f589999..64ec7d6 100644 --- a/arch/powerpc/sysdev/bestcomm/bestcomm.c +++ b/arch/powerpc/sysdev/bestcomm/bestcomm.c @@ -52,6 +52,10 @@ bcom_task_alloc(int bd_count, int bd_size, int priv_size) int i, tasknum = -1; struct bcom_task *tsk; + /* Don't try to do anything if bestcomm init failed */ + if (!bcom_eng) + return NULL; + /* Get and reserve a task num */ spin_lock(&bcom_eng->lock); @@ -484,8 +488,8 @@ mpc52xx_bcom_remove(struct of_device *op) } static struct of_device_id mpc52xx_bcom_of_match[] = { - { .type = "dma-controller", .compatible = "fsl,mpc5200-bestcomm", }, - { .type = "dma-controller", .compatible = "mpc5200-bestcomm", }, + { .compatible = "fsl,mpc5200-bestcomm", }, + { .compatible = "mpc5200-bestcomm", }, {}, }; |