]> git.baikalelectronics.ru Git - kernel.git/commit
dmi: don't save the same device twice
authorJean Delvare <khali@linux-fr.org>
Sat, 23 Feb 2008 23:23:46 +0000 (15:23 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 24 Feb 2008 01:12:14 +0000 (17:12 -0800)
commite5d36b1d71c666fc307bc38623ad311f84be4af3
treeb8100cfd0f339484604e7ef75ebe1d2395ebd75e
parentb9a22962f558bddeea30a5422920e60b0f687c66
dmi: don't save the same device twice

Now that we gather on-board devices from both DMI types 10 and 41, there is
a possibility that we list the same device twice.  In order to not confuse
drivers, and also to save memory, make sure that we do not add duplicate
devices to the dmi_devices list.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/firmware/dmi_scan.c