summaryrefslogtreecommitdiff
path: root/cleopatre
diff options
context:
space:
mode:
authorYacine Belkadi2012-04-04 10:39:50 +0200
committerYacine Belkadi2012-05-03 09:31:51 +0200
commit692512aba9088902c5e2001d595f55f2bcd88c32 (patch)
tree7fdf88355a5fc95ba20f686ad51149f61f56f90c /cleopatre
parentc631318095e3e41d1554fb0e9e053b78b81aad1b (diff)
cleo/devkit/plcdrv: use arch_reset() instead of writing to hardware reg
Refactor: In order to reset, use arch_reset() instead of writing directly to the hardware reset register.
Diffstat (limited to 'cleopatre')
-rw-r--r--cleopatre/devkit/plcdrv/src/plcdrv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cleopatre/devkit/plcdrv/src/plcdrv.c b/cleopatre/devkit/plcdrv/src/plcdrv.c
index 9251dab703..96a476e8e0 100644
--- a/cleopatre/devkit/plcdrv/src/plcdrv.c
+++ b/cleopatre/devkit/plcdrv/src/plcdrv.c
@@ -30,6 +30,7 @@
#include <asm/arch/nvram.h>
#include <asm/arch/hardware/regbank.h>
#include <asm/arch/ioctl.h>
+#include <asm/arch/system.h>
#include "plcdrv.h"
#include "frame.h"
@@ -532,7 +533,7 @@ plcdrv_it_wd (int irq, void *dev_id)
/* Reset */
/* Can't use one of the kernel reboot functions (like
* kernel_restart()) because of the EXPORT_SYMBOL_GPL. */
- RB_RST_GLOBAL_VA = 1;
+ arch_reset ('h');
}
else
{