Messages in this thread Patch in this message | | | Date | Fri, 14 Feb 2003 15:50:21 -0800 | From | Bob Miller <> | Subject | Re: [PATCH 2.5.60 1/9] Add rename_region(). |
| |
On Fri, Feb 14, 2003 at 03:43:49PM -0800, Bob Miller wrote: > 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. > > -- > Bob Miller Email: rem@osdl.org > 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 majordomo@vger.kernel.org > 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...
-- Bob Miller Email: rem@osdl.org 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); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |