#include <linux/init.h>
#include <linux/module.h>
#include <linux/interrupt.h>
-#include <linux/ptrace.h>
#include <linux/sysdev.h>
#include <linux/err.h>
#include <linux/clk.h>
u16 virtual_irq_start;
int method;
u32 reserved_map;
-#if defined (CONFIG_ARCH_OMAP16XX) || defined (CONFIG_ARCH_OMAP24XX) || defined(CONFIG_ARCH_OMAP34XX)
+#if defined(CONFIG_ARCH_OMAP16XX) || defined(CONFIG_ARCH_OMAP24XX) || defined(CONFIG_ARCH_OMAP34XX)
u32 suspend_wakeup;
u32 saved_wakeup;
#endif
return 0;
}
-#if defined (CONFIG_ARCH_OMAP16XX) || defined (CONFIG_ARCH_OMAP24XX) || defined (CONFIG_ARCH_OMAP34XX)
+#if defined(CONFIG_ARCH_OMAP16XX) || defined(CONFIG_ARCH_OMAP24XX) || defined(CONFIG_ARCH_OMAP34XX)
static int omap_gpio_suspend(struct sys_device *dev, pm_message_t mesg)
{
int i;
#define CAMERA_MMU_LOCK_BASE_MASK (0x7 << MMU_LOCK_BASE_SHIFT)
#define CAMERA_MMU_LOCK_VICTIM_MASK (0x7 << MMU_LOCK_VICTIM_SHIFT)
-#define is_aligned(adr,align) (!((adr)&((align)-1)))
+#define is_aligned(adr, align) (!((adr)&((align)-1)))
#define ORDER_1MB (20 - PAGE_SHIFT)
#define ORDER_64KB (16 - PAGE_SHIFT)
#define ORDER_4KB (12 - PAGE_SHIFT)
}
static ssize_t omap_mmu_mem_read(struct kobject *kobj,
- struct bin_attribute * attr,
+ struct bin_attribute *attr,
char *buf, loff_t offset, size_t count)
{
struct device *dev = to_dev(kobj);
}
static ssize_t omap_mmu_mem_write(struct kobject *kobj,
- struct bin_attribute * attr,
+ struct bin_attribute *attr,
char *buf, loff_t offset, size_t count)
{
struct device *dev = to_dev(kobj);
/* To be obsolete for backward compatibility */
ssize_t __omap_mmu_mem_read(struct omap_mmu *mmu,
- struct bin_attribute * attr,
+ struct bin_attribute *attr,
char *buf, loff_t offset, size_t count)
{
return omap_mmu_mem_read(&mmu->dev.kobj, attr, buf, offset, count);
EXPORT_SYMBOL_GPL(__omap_mmu_mem_read);
ssize_t __omap_mmu_mem_write(struct omap_mmu *mmu,
- struct bin_attribute * attr,
+ struct bin_attribute *attr,
char *buf, loff_t offset, size_t count)
{
return omap_mmu_mem_write(&mmu->dev.kobj, attr, buf, offset, count);