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)
commit36405e96c8090fc8fc05d56755645a5821c98992
treef42a54834a6200e04483b703c1395cdb2bb109b1
parentb933e19d32edce2f310dfe0fd943e32ff9798b60
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