]> git.baikalelectronics.ru Git - kernel.git/commit
PNP: simplify PNPBIOS insert_device
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Wed, 17 Oct 2007 06:31:11 +0000 (23:31 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:43:04 +0000 (08:43 -0700)
commitb05daae65030d03bdf0d450b8f34df10081efc8b
treef42a54834a6200e04483b703c1395cdb2bb109b1
parente3d88bcb9ad13192513f38200c27c9a0ed7e2dbe
PNP: simplify PNPBIOS insert_device

Hoist the struct pnp_dev alloc up into the function where it's used.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Adam Belay <ambx1@neo.rr.com>
Cc: Len Brown <lenb@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/pnp/pnpbios/core.c