source: trunk/target/linux/omap24xx/patches-2.6.38/531-cbus-retu-wdt-fix-bitfield.patch @ 26905

Last change on this file since 26905 was 26905, checked in by hauke, 5 years ago

kernel: update kernel from 2.6.38.2 to 2.6.38.6 and refresh patches

Thank you Peter Wagner for the patch. I refreshed the kernel patches and added the md5sum of the kernel.

File size: 989 bytes
  • drivers/cbus/retu-wdt.c

    a b static int counter_param = RETU_WDT_MAX_ 
    5656 
    5757struct retu_wdt_dev { 
    5858        struct device           *dev; 
    59         int                     users; 
     59        unsigned long           users; 
    6060        struct miscdevice       retu_wdt_miscdev; 
    6161        struct delayed_work     ping_work; 
    6262}; 
    static DEVICE_ATTR(counter, S_IRUGO, ret 
    161161 
    162162static int retu_wdt_open(struct inode *inode, struct file *file) 
    163163{ 
    164         if (test_and_set_bit(1, (unsigned long *)&(retu_wdt->users))) 
     164        if (test_and_set_bit(0, &retu_wdt->users)) 
    165165                return -EBUSY; 
    166166 
    167167        file->private_data = (void *)retu_wdt; 
    static int retu_wdt_release(struct inode 
    177177#ifndef CONFIG_WATCHDOG_NOWAYOUT 
    178178        retu_wdt_ping_enable(retu_wdt); 
    179179#endif 
    180         wdev->users = 0; 
     180        clear_bit(0, &retu_wdt->users); 
    181181 
    182182        return 0; 
    183183} 
    static int __init retu_wdt_probe(struct 
    264264                return -ENOMEM; 
    265265 
    266266        wdev->dev = &pdev->dev; 
    267         wdev->users = 0; 
    268267 
    269268        ret = device_create_file(&pdev->dev, &dev_attr_period); 
    270269        if (ret) { 
Note: See TracBrowser for help on using the repository browser.