Commit f188183e authored by Andrew Morton's avatar Andrew Morton Committed by james toy

drivers/char/agp/amd64-agp.c:768: warning: 'agp_amd64_cleanup' defined but not used

Cc: Dave Airlie <airlied@linux.ie>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 26fef853
...@@ -764,12 +764,14 @@ int __init agp_amd64_init(void) ...@@ -764,12 +764,14 @@ int __init agp_amd64_init(void)
return err; return err;
} }
#ifndef CONFIG_GART_IOMMU
static void __exit agp_amd64_cleanup(void) static void __exit agp_amd64_cleanup(void)
{ {
if (aperture_resource) if (aperture_resource)
release_resource(aperture_resource); release_resource(aperture_resource);
pci_unregister_driver(&agp_amd64_pci_driver); pci_unregister_driver(&agp_amd64_pci_driver);
} }
#endif
/* On AMD64 the PCI driver needs to initialize this driver early /* On AMD64 the PCI driver needs to initialize this driver early
for the IOMMU, so it has to be called via a backdoor. */ for the IOMMU, so it has to be called via a backdoor. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment