android_kernel_google_msm/drivers/char
singhome_lee a7e522b11a Avoid to create duplicate filename for misc devices.
There has two bugs.
1. For example, the 'psaux' device will use '1' as minor number to
register misc device, but misc deriver doesn't set the '1' as used.
It's the root casue for duplicate filename.
2. From warning message, minor number '1' is the one of duplicate
fileanme, it meanes the number of dynamic minor is not enough.

The symptom of creating duplicate filename:
------------[ cut here ]------------
     WARNING: at fs/sysfs/dir.c:508 sysfs_add_one+0x7c/0x9c()
     sysfs: cannot create duplicate filename '/dev/char/10:1'
[<c00148b8>] (unwind_backtrace+0x0/0x11c) from
[<c007f828>] (warn_slowpath_common+0x48/0x60)
[<c007f898>] (warn_slowpath_fmt+0x2c/0x3c)
[<c018696c>] (sysfs_add_one+0x7c/0x9c)
[<c01874b4>] (sysfs_do_create_link+0x10c/0x1f8)
[<c03bd6c0>] (device_add+0x1ac/0x5e4)
[<c03be24c>] (device_create_vargs+0x8c/0xd0)
[<c03be2ac>] (device_create+0x1c/0x24)
[<c037c7a4>] (misc_register+0xb4/0x118)
[<c0e30c1c>] (init_log+0x10/0x4c)
[<c0e009d8>] (do_one_initcall+0x90/0x160)
[<c0e00b94>] (kernel_init+0xec/0x1a8)
[<c000f468>] (kernel_thread_exit+0x0/0x8)
---[ end trace da227214a82491b9 ]---

BUG 8889112

Change-Id: I186a945a56fc831f59e19509365a0ae8a481bb2d
Signed-off-by: singhome_lee <singhome_lee@asus.com>
2013-06-12 21:45:38 +00:00
..
agp
diag diag: Bring diag up to date 2013-03-15 17:08:56 -07:00
hw_random Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
ipmi
mwave
pcmcia
tpm Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
xilinx_hwicap
adsprpc.c msm: ADSPRPC: Update driver to create its own device node 2013-03-15 17:07:42 -07:00
adsprpc_shared.h msm: ADSPRPC: Cleanup header and source. 2013-03-15 17:07:42 -07:00
apm-emulation.c
applicom.c
applicom.h
bfin-otp.c
bsr.c
csdio.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
dcc_tty.c
ds1302.c
ds1620.c
dsp56k.c
dtlk.c
efirtc.c
generic_nvram.c
genrtc.c
hangcheck-timer.c
hpet.c
i8k.c
Kconfig msm: Move adsprpc into drivers 2013-03-15 17:07:02 -07:00
lp.c
Makefile msm: Move adsprpc into drivers 2013-03-15 17:07:02 -07:00
mbcs.c
mbcs.h
mem.c
misc.c Avoid to create duplicate filename for misc devices. 2013-06-12 21:45:38 +00:00
mmtimer.c
msm_rotator.c msm: rotator: non-blocking rotate 2013-04-18 16:09:21 -07:00
msm_smd_pkt.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
mspec.c
nsc_gpio.c
nvram.c
nwbutton.c
nwbutton.h
nwflash.c
pc8736x_gpio.c
ppdev.c
ps3flash.c
ramoops.c
random.c
raw.c
rtc.c
scx200_gpio.c
snsc.c
snsc.h
snsc_event.c
sonypi.c
tb0219.c
tile-srom.c
tlclk.c
toshiba.c
ttyprintk.c
uv_mmtimer.c
virtio_console.c