[bug fix]: fix delta ag9032v1 driver compilation. disable ag9064

This commit is contained in:
Guohan Lu 2018-03-03 18:26:12 +00:00
parent 689bbd2b72
commit 91891af27e
2 changed files with 3 additions and 3 deletions

View File

@ -348,7 +348,7 @@ static struct platform_driver cpld_driver = {
/*---------------- module initialization ------------- */
static void __init delta_ag9032v1_cpupld_init(void)
static int __init delta_ag9032v1_cpupld_init(void)
{
int ret;
printk(KERN_WARNING "ag9032v1_platform_cpupld module initialization\n");
@ -384,4 +384,4 @@ module_exit(delta_ag9032v1_cpupld_exit);
MODULE_DESCRIPTION("DNI ag9032v1 CPLD Platform Support");
MODULE_AUTHOR("Stanley Chi <stanley.chi@deltaww.com>");
MODULE_LICENSE("GPL");
MODULE_LICENSE("GPL");

View File

@ -1613,7 +1613,7 @@ static ssize_t set_swpld_data(struct device *dev, struct device_attribute *dev_a
int val;
u8 mask_out;
ret = kstrtoul(buf, 0, &val);
ret = kstrtoint(buf, 0, &val);
if (ret)
{