block: make /proc/partitions and /proc/diskstats use class_find_device()
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 22 May 2008 21:21:08 +0000 (17:21 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 22 Jul 2008 04:54:49 +0000 (21:54 -0700)
commit27f302519148f311307637d4c9a6d0fd87d07e4c
tree36693a6ec709b037730bb343e72bd8cc508999dc
parent66c64afec16a7b46212ecb2fa99998923bbeea3f
block: make /proc/partitions and /proc/diskstats use class_find_device()

Use the proper class iterator function instead of mucking around in the
internals of the class structures.

Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
block/genhd.c