]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drivers/char/mem.c: memory_open() cleanup: lookup minor device number from devlist
authorAdriano dos Santos Fernandes <adrianosf@uol.com.br>
Wed, 17 Jun 2009 23:27:48 +0000 (16:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 18 Jun 2009 20:03:54 +0000 (13:03 -0700)
commitd6f47befdd7483cd1e14a7ae76ef22f7f9722c90
tree77ea51c4a4ffc513d8d5a3a6f09f66234eea85ea
parent31a985fbb18c1600955124a1efd2343efa867549
drivers/char/mem.c: memory_open() cleanup: lookup minor device number from devlist

memory_open() ignores devlist and does a switch for each item, duplicating
code and conditional definitions.

Clean it up by adding backing_dev_info to devlist and use it to lookup for
the minor device.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Adriano dos Santos Fernandes <adrianosf@uol.com.br>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/mem.c