summaryrefslogtreecommitdiff
path: root/cleopatre/linux-2.6.25.10-spc300/arch
diff options
context:
space:
mode:
Diffstat (limited to 'cleopatre/linux-2.6.25.10-spc300/arch')
-rw-r--r--cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300.c9
-rw-r--r--cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300.h3
2 files changed, 9 insertions, 3 deletions
diff --git a/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300.c b/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300.c
index 42c4af9956..d0048a8b8b 100644
--- a/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300.c
+++ b/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300.c
@@ -124,6 +124,10 @@ static uint32_t spc300_wakeup_irq_mask;
/** Backup of interrupts mask at suspend. */
static uint32_t spc300_backup_irq_mask;
+/** Spidimg proc dir pointer. */
+struct proc_dir_entry *spc300_spidimg_proc_dir;
+EXPORT_SYMBOL(spc300_spidimg_proc_dir);
+
/**
* Mask IRQ line.
*
@@ -425,14 +429,13 @@ static int spc300_readproc_img_slot (char *buf, char **start, off_t offset,
static void spc300_spidimg_proc_init (void)
{
- struct proc_dir_entry *spidimg_proc_dir;
struct proc_dir_entry *entry;
- spidimg_proc_dir = proc_mkdir("spidimg", &proc_root);
+ spc300_spidimg_proc_dir = proc_mkdir("spidimg", &proc_root);
/* This entry is read only, so there is no write function and permissions
* are set to 0444. */
- entry = create_proc_entry("current_img_slot", 0, spidimg_proc_dir);
+ entry = create_proc_entry("current_img_slot", 0, spc300_spidimg_proc_dir);
entry->read_proc = spc300_readproc_img_slot;
entry->mode = S_IRUGO;
entry->data = (void *)(&spc300_cur_img_slot);
diff --git a/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300.h b/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300.h
index 57ae8793fd..47268d0bdb 100644
--- a/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300.h
+++ b/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300.h
@@ -20,12 +20,15 @@
#ifndef __ARCH_ARM_MACH_SPC300_H
#define __ARCH_ARM_MACH_SPC300_H
+#include <linux/proc_fs.h>
#include <asm/mach/arch.h>
extern struct sys_timer spc300_timer;
extern int spc300_autoswitch_en;
+extern struct proc_dir_entry *spc300_spidimg_proc_dir;
+
/**
* Position of the NVRAM relative to the start of the flash.
* As the NVRAM is the second partition, this will also correspond to the