source: trunk/package/ep80579-drivers/patches/300-wdt_compile_fix.patch @ 20648

Last change on this file since 20648 was 20648, checked in by kaloz, 7 years ago

[x86]: add a subtarget and drivers for the Intel Tolapai SoC

File size: 2.4 KB
  • Embedded/src/WDT/iwdt.c

    a b MODULE_PARM_DESC(wdt_scale, "Intel WDT s 
    180180module_param(wdt_intr_type, byte, WDT_INT_TYPE_IRQ); 
    181181MODULE_PARM_DESC(wdt_intr_type, "Intel WDT interrupt type (default SERIRQ)."); 
    182182 
    183 module_param(wdt_margin1, uint, TIMER_MARGIN); 
     183module_param(wdt_margin1, uint, 0); 
    184184MODULE_PARM_DESC(wdt_margin1, "First stage Intel WDT timeout in steps of 1 ms by default."); 
    185185 
    186 module_param(wdt_margin2, uint, TIMER_MARGIN); 
     186module_param(wdt_margin2, uint, 0); 
    187187MODULE_PARM_DESC(wdt_margin2, "Second stage Intel WDT timeout in steps of 1 ms by default."); 
    188188 
    189189module_param(nowayout, int, 0); 
    190190MODULE_PARM_DESC(nowayout, "Intel WDT can't be stopped once started (default=0)"); 
    191191 
    192 module_param(wdt_index_port, int, 0x4E); 
     192module_param(wdt_index_port, int, 0); 
    193193MODULE_PARM_DESC(wdt_index_port, "WDT Index Port (default 0x4e)"); 
    194194 
    195 module_param(wdt_data_port, int, 0x4E); 
     195module_param(wdt_data_port, int, 0); 
    196196MODULE_PARM_DESC(wdt_data_port, "WDT Data Port (default 0x4f)"); 
    197197 
    198198static int wdt_get_iobase(struct pci_dev *dev, u16 *iobase, int *irq); 
    static ssize_t wdt_write(struct file *fi 
    218218                     size_t count, loff_t * pos); 
    219219static int wdt_ioctl(struct inode *inode, struct file *file, 
    220220                    unsigned int cmd, unsigned long arg); 
    221 static irqreturn_t wdt_isr(int irq, void *dev_id, struct pt_regs *regs); 
     221static irqreturn_t wdt_isr(int irq, void *dev_id); 
    222222static void __exit wdt_cleanup(void); 
    223223static int __init wdt_init(void); 
    224224static int __init wdt_init_one(struct pci_dev *dev, 
    static struct pci_driver wdt_driver = { 
    255255     name:        "iwdt", 
    256256     id_table:     lpc_pci_tbl, 
    257257     probe:        wdt_init_one, 
    258      remove:        __devexit(wdt_remove_one), 
     258     remove:        __devexit_p(wdt_remove_one), 
    259259     suspend:      wdt_pci_suspend, 
    260260     resume:       wdt_pci_resume, 
    261261}; 
    static int wdt_ioctl(struct inode *inode 
    13931393 
    13941394/* 
    13951395 * Function Name:   wdt_isr() 
    1396  * Parameter:    int irq - irq number, void *dev_id, struct pt_regs *regs 
     1396 * Parameter:    int irq - irq number, void *dev_id 
    13971397 * Return Value::   IRQ_NONE -  if the interrupt is not for wdt. 
    13981398 *           IRQ_HANDLED - if it is for wdt. 
    13991399 * Description:     This is the interrupt service routine of the WDT. 
    14001400 */ 
    1401 static irqreturn_t wdt_isr(int irq, void *dev_id, struct pt_regs *regs) 
     1401static irqreturn_t wdt_isr(int irq, void *dev_id) 
    14021402{ 
    14031403     u8 val; 
    14041404 
Note: See TracBrowser for help on using the repository browser.