Changeset 8568


Ignore:
Timestamp:
2007-09-01T07:25:44+02:00 (10 years ago)
Author:
nico
Message:

small rdc-2.6 fixes (from sn9, thanks!)

Location:
trunk/target/linux/rdc-2.6
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/rdc-2.6/config/default

    r8505 r8568  
    2929# CONFIG_CPU5_WDT is not set 
    3030# CONFIG_CPU_FREQ is not set 
    31 CONFIG_CRC_ITU_T=y 
    3231CONFIG_CRYPTO_AES_586=m 
    33 CONFIG_CRYPTO_ARC4=y 
    3432CONFIG_CRYPTO_DEV_GEODE=m 
    3533# CONFIG_CRYPTO_DEV_PADLOCK is not set 
    36 CONFIG_CRYPTO_ECB=y 
    3734CONFIG_CRYPTO_TWOFISH_586=m 
    3835# CONFIG_CS5535_GPIO is not set 
  • trunk/target/linux/rdc-2.6/files/arch/i386/mach-rdc/gpio.c

    r8504 r8568  
    2020static inline int rdc_gpio_is_valid(unsigned gpio) 
    2121{ 
    22         return ((gpio > RDC_MAX_GPIO) ? 0 : 1); 
     22        return (gpio <= RDC_MAX_GPIO); 
    2323} 
    2424 
     
    5454        if (rdc_gpio_is_valid(gpio)) 
    5555                return (int)rdc_gpio_read(gpio); 
     56        else 
     57                return -EINVAL; 
    5658} 
    5759EXPORT_SYMBOL(rdc_gpio_get_value); 
  • trunk/target/linux/rdc-2.6/files/arch/i386/mach-rdc/wdt.c

    r8506 r8568  
    213213        if ( (err = misc_register(&rdc321x_wdt_misc)) < 0 ) { 
    214214                printk(KERN_ERR PFX "misc_register failed\n"); 
    215                 goto no_misc; 
     215                return err; 
    216216        } 
    217217 
     
    231231 
    232232        return 0; 
    233  
    234 no_misc: 
    235         return err; 
    236233} 
    237234 
Note: See TracChangeset for help on using the changeset viewer.