Hi,
Actually i meant "myinterrupt" is there in cat/proc/interrupts with interrupt number 51 after giving the command [request_irq(51,my_isr,IRQF_SHARED,"myinterrupt",&x )]. What modification should i do in this code??

code

#include <linux/module.h>
#include <linux/version.h>
#include <linux/delay.h>
#include <linux/fs.h>
#include <asm/arch/hardware.h>
#include <asm/arch/gpio.h>
#include <asm/arch/irqs.h>
#include <asm/arch/irq.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include<linux/sched.h>
#include<linux/kernel.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/err.h>
#include <linux/bitops.h>
#include <linux/proc_fs.h>
#include <asm/irq.h>
#include <asm/io.h>
#include <asm/hardware/clock.h>
#include <asm/arch/cpu.h>
#include <asm/mach/irq.h>


#define INTERRUPT_NAME "INTERRUPT_DRIVER"
#define DAVINCI_SYSTEM_MODULE_BASE (0x01C40000)
#define PINMUX3 (DAVINCI_SYSTEM_MODULE_BASE + 0x0c)
#define DAVINCI_GPIO_BASE (0x01C67000)
#define DIR01 (DAVINCI_GPIO_BASE + 0x10)
#define IRQF_SHARED 0x00000080
#define IRQF_TRIGGER_NONE 0x00000000
#define IRQF_TRIGGER_RISING 0x00000001
#define IRQF_TRIGGER_FALLING 0x00000002
#define IRQF_TRIGGER_HIGH 0x00000004
#define IRQF_TRIGGER_LOW 0x00000008
#define IRQF_TRIGGER_MASK (IRQF_TRIGGER_HIGH | IRQF_TRIGGER_LOW | \
IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING)
#define IRQF_TRIGGER_PROBE 0x00000010

struct file_operations fops;
static int status;
static int a,b;

irqreturn_t my_isr(int,void*,struct pt_regs*);

static int count=0;
unsigned long int x=10;

static int my_init(void)
{
printk("In init module\n");
status = register_chrdev(0, INTERRUPT_NAME, &fops);
printk("status=%d\n",status);

void __iomem *pinmux3=(void __iomem*)IO_ADDRESS(DAVINCI_SYSTEM_MODULE_BASE+0x0 c);
__raw_writel(0xEFFDFFFF,pinmux3);

gpio_direction_input(7);
set_irq_type(51, IRQT_HIGH);

if(request_irq(51,my_isr,IRQF_SHARED,"myinterrupt" ,&x))
{
printk("error");
return -EBUSY;
}
//enable_irq(51);
return 0;

}


irqreturn_t my_isr(int irq,void *dev_id,struct pt_regs *regs)
{
printk("In isr %d\n",++count);
printk("Dev id %d\n",*(unsigned long*)dev_id);
//disable_irq(51);
gpio_set_value(17,1);
a=gpio_get_value(17);
printk("value of 17=%x\n",a);
msleep(2000);
gpio_set_value(17,0);
b=gpio_get_value(17);
printk("value of 17=%x\n",b);
msleep(2000);
//enable_irq(51);
return 0;
}

static void my_clean(void)
{
printk("In cleanup module");
//disable_irq(51);
unregister_chrdev(status, INTERRUPT_NAME);
free_irq(51,&x);
}


MODULE_AUTHOR("aa");
MODULE_DESCRIPTION("INTERRUPT DRIVER");
MODULE_LICENSE("GPL");
module_init(my_init);
module_exit(my_clean);

Thanks