]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
W1: w1_int.c use first available master number
authorDavid Fries <david@fries.net>
Thu, 16 Oct 2008 05:04:53 +0000 (22:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Oct 2008 18:21:50 +0000 (11:21 -0700)
commitaf00a2d5a047455b35d1e7dc4c7d9993c2bcfb93
tree2ad744edff4aa6b4f63c39b9285b578f407fff74
parente0d29c7699de723432da268748aefe9624fc8529
W1: w1_int.c use first available master number

Follow the example of other devices (like the joystick device).  Pick the
first available id for each detected device.  Currently for USB devices,
suspending and resuming would cause the number to increment.

Signed-off-by: David Fries <david@fries.net>
Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/w1/w1_int.c