mem_class: use minor as index instead of searching the array
authorKay Sievers <kay.sievers@vrfy.org>
Sat, 4 Jul 2009 14:51:29 +0000 (16:51 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 16:50:47 +0000 (09:50 -0700)
commit389e0cb9a1dec22ec37a104dec5009dd7a33dd59
tree9396beba4a873dc2c8fcd1a7f16b2bb7cd3fc94e
parenta4dbd6740df0872cdf0a86841f75beec8381964d
mem_class: use minor as index instead of searching the array

Declare the device list with the minor numbers as the index, which saves us from
searching for a matching list entry. Remove old devfs permissions declaration.

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/mem.c