[OpenWrt-Devel] [lantiq] general help on AR10 platform

Hauke Mehrtens hauke at hauke-m.de
Mon Sep 2 14:29:28 EDT 2019


On 9/2/19 6:26 AM, Enrico Mioso wrote:
> BTW, in vendor's cgu_init, seems the "enablement" part is commented out.
> 
> static int __init cgu_init(void)
> {
>     int ret;
>     char ver_str[128] = {0};
> 
>     ret = register_chrdev(IFX_CGU_MAJOR, "ifx_cgu", &cgu_fops);
>     if ( ret != 0 ) {
>         printk(KERN_ERR "Can not register CGU device - %d\n", ret);
>         return ret;
>     }
> 
> #ifdef CONFIG_PROC_FS
>     proc_file_create();
> #endif
> 
>     /* malloc MPS backup mem */
>     argv = kmalloc(MPS_MEM_SEG_DATASIZE, GFP_KERNEL);
> 
>     ifx_cgu_version(ver_str);
>     printk(KERN_INFO "%s", ver_str);
> 
>     //enable
>     return IFX_SUCCESS;
> }
This is only registering some shar device to user space, nothing important.

Hauke

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list