aboutsummaryrefslogtreecommitdiff
path: root/lib/devres.c
AgeCommit message (Collapse)AuthorFilesLines
2008-03-17devres: implement pcim_iomap_regions_request_all()Tejun Heo1-0/+25
Some drivers need to reserve all PCI BARs to prevent other drivers misusing unoccupied BARs. pcim_iomap_regions_request_all() requests all BARs and iomap specified BARs. Signed-off-by: Tejun Heo <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Alan Cox <[email protected]> Cc: Jeff Garzik <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2007-04-28iomap: implement pcim_iounmap_regions()Tejun Heo1-0/+26
Implement pcim_iounmap_regions() - the opposite of pcim_iomap_regions(). Signed-off-by: Tejun heo <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2007-02-16[PATCH] pci_iomap_regions() error handling fixFrederik Deweerdt1-4/+4
It appears that the pcim_iomap_regions() function doesn't get the error handling right. It BUGs early at boot with a backtrace along the lines of: ahci_init pci_register_driver driver_register [...] ahci_init_one pcim_iomap_region pcim_iounmap The following patch allows me to boot. Only the if(mask..) continue; part fixes the problem actually, the gotos where changed so that we don't try to unmap something we couldn't map anyway. Signed-off-by: Frederik Deweerdt <[email protected]> Cc: Al Viro <[email protected]> Cc: Tejun Heo <[email protected]> Cc: Jeff Garzik <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-02-11[PATCH] sort the devres mess outAl Viro1-0/+300
* Split the implementation-agnostic stuff in separate files. * Make sure that targets using non-default request_irq() pull kernel/irq/devres.o * Introduce new symbols (HAS_IOPORT and HAS_IOMEM) defaulting to positive; allow architectures to turn them off (we needed these symbols anyway for dependencies of quite a few drivers). * protect the ioport-related parts of lib/devres.o with CONFIG_HAS_IOPORT. Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>