在做驱动开发的时候,加载驱动总是报出这么一长串的错误
/lib/modules/4.1.15 # modprobe gpioled.ko
gpioled major = 248, minor = 0
can’t find led gpio
gpioled major = 247, minor = 0
------------[ cut here ]------------
WARNING: CPU: 0 PID: 75 at fs/sysfs/dir.c:31 sysfs_warn_dup+0x54/0x74()
sysfs: cannot create duplicate filename ‘/class/gpioled1’
Modules linked in: gpioled(O+)
CPU: 0 PID: 75 Comm: modprobe Tainted: G O 4.1.15 #1
Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[<80015ed4>] (unwind_backtrace) from [<80012794>] (show_stack+0x10/0x14)
[<80012794>] (show_stack) from [<806f2178>] (dump_stack+0x80/0xc8)
[<806f2178>] (dump_stack) from [<8003824c>] (warn_slowpath_common+0x74/0xb0)
[<8003824c>] (warn_slowpath_common) from [<800382b8>] (warn_slowpath_fmt+0x30/0x40)
[<800382b8>] (warn_slowpath_fmt) from [<801