Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752200AbaAYPfj (ORCPT ); Sat, 25 Jan 2014 10:35:39 -0500 Received: from mail-oa0-f44.google.com ([209.85.219.44]:55554 "EHLO mail-oa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751708AbaAYPfh (ORCPT ); Sat, 25 Jan 2014 10:35:37 -0500 MIME-Version: 1.0 Date: Sat, 25 Jan 2014 16:35:37 +0100 Message-ID: Subject: sysfs: cannot create duplicate filename '/bus/platform/devices/twl4030-codec' From: Belisko Marek To: LKML Cc: peter.ujfalusi@ti.com Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, booting linux-next (not actual but older from 20.12 gives me following warning). I'm booting gta04 device via devicetree with added sound node (copied from beagleboard) [ 1.962524] ------------[ cut here ]------------ [ 1.967498] WARNING: CPU: 0 PID: 1 at fs/sysfs/dir.c:52 sysfs_warn_dup+0x70/0x90() [ 1.975433] sysfs: cannot create duplicate filename '/bus/platform/devices/twl4030-codec' [ 1.983947] Modules linked in: [ 1.987182] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.13.0-rc4-next-20131220-00021-gb76a93c-dirty #7 [ 1.996948] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [ 2.005096] [] (show_stack) from [] (dump_stack+0x7c/0x94) [ 2.012634] [] (dump_stack) from [] (warn_slowpath_common+0x6c/0x90) [ 2.021118] [] (warn_slowpath_common) from [] (warn_slowpath_fmt+0x30/0x40) [ 2.030212] [] (warn_slowpath_fmt) from [] (sysfs_warn_dup+0x70/0x90) [ 2.038787] [] (sysfs_warn_dup) from [] (sysfs_do_create_link_sd.isra.2+0xb0/0xb8) [ 2.049407] [] (sysfs_do_create_link_sd.isra.2) from [] (bus_add_device+0x108/0x194) [ 2.059387] [] (bus_add_device) from [] (device_add+0x3cc/0x520) [ 2.067504] [] (device_add) from [] (platform_device_add+0xac/0x210) [ 2.075958] [] (platform_device_add) from [] (mfd_add_device+0x10c/0x31c) [ 2.084899] [] (mfd_add_device) from [] (mfd_add_devices+0xa0/0x100) [ 2.093322] [] (mfd_add_devices) from [] (twl4030_audio_probe+0x178/0x2ac) [ 2.102325] [] (twl4030_audio_probe) from [] (platform_drv_probe+0x18/0x48) [ 2.111419] [] (platform_drv_probe) from [] (driver_probe_device+0x110/0x22c) [ 2.120697] [] (driver_probe_device) from [] (bus_for_each_drv+0x58/0x8c) [ 2.129608] [] (bus_for_each_drv) from [] (device_attach+0x74/0x8c) [ 2.138000] [] (device_attach) from [] (bus_probe_device+0x88/0xb0) [ 2.146392] [] (bus_probe_device) from [] (device_add+0x420/0x520) [ 2.154663] [] (device_add) from [] (platform_device_add+0xac/0x210) [ 2.163085] [] (platform_device_add) from [] (mfd_add_device+0x10c/0x31c) [ 2.171997] [] (mfd_add_device) from [] (mfd_add_devices+0xa0/0x100) [ 2.180480] [] (mfd_add_devices) from [] (twl4030_audio_probe+0x178/0x2ac) [ 2.189483] [] (twl4030_audio_probe) from [] (platform_drv_probe+0x18/0x48) [ 2.198577] [] (platform_drv_probe) from [] (driver_probe_device+0x110/0x22c) [ 2.207885] [] (driver_probe_device) from [] (__driver_attach+0x94/0x98) [ 2.216705] [] (__driver_attach) from [] (bus_for_each_dev+0x60/0x94) [ 2.225280] [] (bus_for_each_dev) from [] (bus_add_driver+0x144/0x1f0) [ 2.233886] [] (bus_add_driver) from [] (driver_register+0x78/0xf8) [ 2.242248] [] (driver_register) from [] (do_one_initcall+0xe8/0x14c) [ 2.250823] [] (do_one_initcall) from [] (kernel_init_freeable+0x104/0x1c8) [ 2.259948] [] (kernel_init_freeable) from [] (kernel_init+0x8/0x118) [ 2.268493] [] (kernel_init) from [] (ret_from_fork+0x14/0x2c) [ 2.276550] ---[ end trace 371733b66b0dc450 ]--- [ 2.283081] twl4030-audio: probe of twl4030-codec failed with error -17 I can see that probe function is called 3 times (not sure where it comes from). Any pointers? Thanks, marek -- as simple and primitive as possible ------------------------------------------------- Marek Belisko - OPEN-NANDRA Freelance Developer Ruska Nova Ves 219 | Presov, 08005 Slovak Republic Tel: +421 915 052 184 skype: marekwhite twitter: #opennandra web: http://open-nandra.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/