mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-02 19:51:05 +02:00
small rdc-2.6 fixes (from sn9, thanks!)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8568 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
ba66ef99cb
commit
947d2b4338
@ -28,12 +28,9 @@ CONFIG_CLOCKSOURCE_WATCHDOG=y
|
|||||||
# CONFIG_COMPAT_VDSO is not set
|
# CONFIG_COMPAT_VDSO is not set
|
||||||
# CONFIG_CPU5_WDT is not set
|
# CONFIG_CPU5_WDT is not set
|
||||||
# CONFIG_CPU_FREQ is not set
|
# CONFIG_CPU_FREQ is not set
|
||||||
CONFIG_CRC_ITU_T=y
|
|
||||||
CONFIG_CRYPTO_AES_586=m
|
CONFIG_CRYPTO_AES_586=m
|
||||||
CONFIG_CRYPTO_ARC4=y
|
|
||||||
CONFIG_CRYPTO_DEV_GEODE=m
|
CONFIG_CRYPTO_DEV_GEODE=m
|
||||||
# CONFIG_CRYPTO_DEV_PADLOCK is not set
|
# CONFIG_CRYPTO_DEV_PADLOCK is not set
|
||||||
CONFIG_CRYPTO_ECB=y
|
|
||||||
CONFIG_CRYPTO_TWOFISH_586=m
|
CONFIG_CRYPTO_TWOFISH_586=m
|
||||||
# CONFIG_CS5535_GPIO is not set
|
# CONFIG_CS5535_GPIO is not set
|
||||||
# CONFIG_DCDBAS is not set
|
# CONFIG_DCDBAS is not set
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
static inline int rdc_gpio_is_valid(unsigned gpio)
|
static inline int rdc_gpio_is_valid(unsigned gpio)
|
||||||
{
|
{
|
||||||
return ((gpio > RDC_MAX_GPIO) ? 0 : 1);
|
return (gpio <= RDC_MAX_GPIO);
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int rdc_gpio_read(unsigned gpio)
|
static unsigned int rdc_gpio_read(unsigned gpio)
|
||||||
@ -53,6 +53,8 @@ int rdc_gpio_get_value(unsigned gpio)
|
|||||||
{
|
{
|
||||||
if (rdc_gpio_is_valid(gpio))
|
if (rdc_gpio_is_valid(gpio))
|
||||||
return (int)rdc_gpio_read(gpio);
|
return (int)rdc_gpio_read(gpio);
|
||||||
|
else
|
||||||
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(rdc_gpio_get_value);
|
EXPORT_SYMBOL(rdc_gpio_get_value);
|
||||||
|
|
||||||
|
@ -212,7 +212,7 @@ static int __devinit rdc321x_wdt_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
if ( (err = misc_register(&rdc321x_wdt_misc)) < 0 ) {
|
if ( (err = misc_register(&rdc321x_wdt_misc)) < 0 ) {
|
||||||
printk(KERN_ERR PFX "misc_register failed\n");
|
printk(KERN_ERR PFX "misc_register failed\n");
|
||||||
goto no_misc;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Reset the watchdog */
|
/* Reset the watchdog */
|
||||||
@ -230,9 +230,6 @@ static int __devinit rdc321x_wdt_probe(struct platform_device *pdev)
|
|||||||
printk(KERN_INFO PFX "init success\n");
|
printk(KERN_INFO PFX "init success\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
no_misc:
|
|
||||||
return err;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int rdc321x_wdt_remove(struct platform_device *pdev)
|
static int rdc321x_wdt_remove(struct platform_device *pdev)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user