]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/plat-omap/dsp/dsp_mem.c
DSP: Fix build problem with OMAP1
[linux-2.6-omap-h63xx.git] / arch / arm / plat-omap / dsp / dsp_mem.c
index d5a652c90bedc2e76dfaf7b408e435eb1ded13f7..eab57b531cd21709bc66187531172e2d59bed3ef 100644 (file)
@@ -344,8 +344,6 @@ static int dsp_mem_ioctl(struct inode *inode, struct file *file,
                         unsigned int cmd, unsigned long arg)
 {
        struct omap_dsp_mapinfo mapinfo;
-       dsp_long_t dspadr;
-       int ret;
        __u32 size;
 
        switch (cmd) {
@@ -370,6 +368,9 @@ static int dsp_mem_ioctl(struct inode *inode, struct file *file,
                return 0;
 #ifdef CONFIG_OMAP_DSP_FBEXPORT
        case MEM_IOCTL_FBEXPORT:
+       {
+               dsp_long_t dspadr;
+               int ret;
                if (copy_from_user(&dspadr, (void __user *)arg,
                                   sizeof(dsp_long_t)))
                        return -EFAULT;
@@ -378,6 +379,7 @@ static int dsp_mem_ioctl(struct inode *inode, struct file *file,
                                 sizeof(dsp_long_t)))
                        return -EFAULT;
                return ret;
+       }
 #endif
        case MEM_IOCTL_MMUITACK:
                return dsp_mmu_itack();