summaryrefslogtreecommitdiffstats
path: root/drivers/char/agp/alpha-agp.c
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2007-04-05 17:19:09 +1000
committerGreg Kroah-Hartman <gregkh@suse.de>2007-05-02 19:02:37 -0700
commitbab41e9be75121c473b00df2ffa33af3c44066a7 (patch)
treecd519c2a32c951914ec7e7f909ae3822313f594c /drivers/char/agp/alpha-agp.c
parent65891215e6b822c368fb3f36abf129ed48af8be0 (diff)
downloadblackbird-op-linux-bab41e9be75121c473b00df2ffa33af3c44066a7.tar.gz
blackbird-op-linux-bab41e9be75121c473b00df2ffa33af3c44066a7.zip
PCI: Convert to alloc_pci_dev()
Convert code that allocs a struct pci_dev to use alloc_pci_dev(). Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/char/agp/alpha-agp.c')
-rw-r--r--drivers/char/agp/alpha-agp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/agp/alpha-agp.c b/drivers/char/agp/alpha-agp.c
index b0acf41c0db9..aa8f3a39a704 100644
--- a/drivers/char/agp/alpha-agp.c
+++ b/drivers/char/agp/alpha-agp.c
@@ -173,7 +173,7 @@ alpha_core_agp_setup(void)
/*
* Build a fake pci_dev struct
*/
- pdev = kmalloc(sizeof(struct pci_dev), GFP_KERNEL);
+ pdev = alloc_pci_dev();
if (!pdev)
return -ENOMEM;
pdev->vendor = 0xffff;
OpenPOWER on IntegriCloud