Add rename_region().
PATCH 1/9 Add rename_region().
Some devices need to call request_region() to reserve io ports before they know the exact name needed (i.e: parport0). The new rename_region() method allows the name to be replaced after the real name is known.
Signature · 2 lines
Bob Miller Email: [email protected] Open Source Development Lab Phone: 503.626.2455 Ext. 17
Quoted 12 lines · Bob Miller
Some devices need to call
request_region()to reserve io ports before they know the exact name needed (i.e: parport0). The newrename_region()method allows the name to be replaced after the real name is known.Signature · 7 lines
Bob Miller Email: [email protected] Open Source Development Lab Phone: 503.626.2455 Ext. 17 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Sorry forgot the diff...
Signature · 16 lines
Bob Miller Email: [email protected] Open Source Development Lab Phone: 503.626.2455 Ext. 17 :r /tmp/parport.patch.all diff -Nru a/include/linux/ioport.h b/include/linux/ioport.h --- a/include/linux/ioport.h Fri Feb 14 09:50:44 2003 +++ b/include/linux/ioport.h Fri Feb 14 09:50:44 2003 @@ -107,6 +107,7 @@ #define release_region(start,n) __release_region(&ioport_resource, (start), (n)) #define check_mem_region(start,n) __check_region(&iomem_resource, (start), (n)) #define release_mem_region(start,n) __release_region(&iomem_resource, (start), (n)) +#define rename_region(resource, n) (resource)->name = (n); extern int __deprecated __check_region(struct resource *, unsigned long, unsigned long); extern void __release_region(struct resource *, unsigned long, unsigned long);