蓝天-彭 发表于 2014-3-6 18:32:29

加载官方自带的gpio-suxi驱动模块问题

root@linaro-alip#insmod /lib/modules/3.4.61+/kernel/drivers/gpio/gpio-sunxi.ko
<4>------------[ cut here ]------------4.61+/kernel/driversinsmod gpio-sunxi.ko
<4>WARNING: at fs/sysfs/dir.c:508 sysfs_add_one+0x88/0xbc()                     
<4>sysfs: cannot create duplicate filename '/devices/platform/gpio-sunxi'      
<d>Modules linked in: gpio_sunxi(+) w1_sun4i(O) sun4i_csi1 ov7670 videobuf_dma_s
[<c0014e34>] (unwind_backtrace+0x0/0x138) from [<c0035df0>] (warn_slowpath_comm)
[<c0035df0>] (warn_slowpath_common+0x4c/0x64) from [<c0035e9c>] (warn_slowpath_)
[<c0035e9c>] (warn_slowpath_fmt+0x30/0x40) from [<c0141648>] (sysfs_add_one+0x8)
[<c0141648>] (sysfs_add_one+0x88/0xbc) from [<c014182c>] (create_dir+0x60/0xbc)
[<c014182c>] (create_dir+0x60/0xbc) from [<c0141b9c>] (sysfs_create_dir+0x90/0x)
[<c0141b9c>] (sysfs_create_dir+0x90/0xf4) from [<c02b293c>] (kobject_add_intern)
[<c02b293c>] (kobject_add_internal+0xb0/0x23c) from [<c02b2ee4>] (kobject_add+0)
[<c02b2ee4>] (kobject_add+0x4c/0x94) from [<c0334890>] (device_add+0xcc/0x5bc)
[<c0334890>] (device_add+0xcc/0x5bc) from [<c0338ad8>] (platform_device_add+0x1)
[<c0338ad8>] (platform_device_add+0x100/0x1d4) from [<bf1be00c>] (sunxi_gpio_in)
[<bf1be00c>] (sunxi_gpio_init+0xc/0x28 ) from [<c00085b8>] (do_one_)
[<c00085b8>] (do_one_initcall+0x34/0x174) from [<c007ef1c>] (sys_init_module+0x)
[<c007ef1c>] (sys_init_module+0xe18/0x1cd0) from [<c000e9c0>] (ret_fast_syscall)
<4>---[ end trace cc08f63114807c1c ]---                                       
<4>------------[ cut here ]------------                                       
<4>WARNING: at lib/kobject.c:198 kobject_add_internal+0x1d0/0x23c()            
kobject_add_internal failed for gpio-sunxi with -EEXIST, don't try to register .
<d>Modules linked in: gpio_sunxi(+) w1_sun4i(O) sun4i_csi1 ov7670 videobuf_dma_s
[<c0014e34>] (unwind_backtrace+0x0/0x138) from [<c0035df0>] (warn_slowpath_comm)
[<c0035df0>] (warn_slowpath_common+0x4c/0x64) from [<c0035e9c>] (warn_slowpath_)
[<c0035e9c>] (warn_slowpath_fmt+0x30/0x40) from [<c02b2a5c>] (kobject_add_inter)
[<c02b2a5c>] (kobject_add_internal+0x1d0/0x23c) from [<c02b2ee4>] (kobject_add+)
[<c02b2ee4>] (kobject_add+0x4c/0x94) from [<c0334890>] (device_add+0xcc/0x5bc)
[<c0334890>] (device_add+0xcc/0x5bc) from [<c0338ad8>] (platform_device_add+0x1)
[<c0338ad8>] (platform_device_add+0x100/0x1d4) from [<bf1be00c>] (sunxi_gpio_in)
[<bf1be00c>] (sunxi_gpio_init+0xc/0x28 ) from [<c00085b8>] (do_one_)
[<c00085b8>] (do_one_initcall+0x34/0x174) from [<c007ef1c>] (sys_init_module+0x)
[<c007ef1c>] (sys_init_module+0xe18/0x1cd0) from [<c000e9c0>] (ret_fast_syscall)
<4>---[ end trace cc08f63114807c1d ]---                                       
insmod: error inserting 'gpio-sunxi.ko': -1 File exists

有人知道这是怎么回事???

siqiang_comeon 发表于 2016-2-4 18:57:26

你的驱动已经加载了
页: [1]
查看完整版本: 加载官方自带的gpio-suxi驱动模块问题