diff options
| author | Catalin Marinas <catalin.marinas@arm.com> | 2009-02-10 11:55:45 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-03-24 19:20:31 -0400 |
| commit | f9031f2c4237abfe75d9ad33f5c0f0dde96f7d09 (patch) | |
| tree | 7157000ccf8dee34d68b62b7dd8ed59c372f3c41 /drivers | |
| parent | a2c2706e1043c17139c2dafd171c4a5cf008ef7e (diff) | |
USB: Make the isp1760_register function prototype more generic
The patch changes the prototype of the isp1760_register() function to use
predefined types like phys_addr_t and resource_size_t rather than u64
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Sebastian Siewior <bigeasy@linutronix.de>
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/usb/host/isp1760-hcd.c | 7 | ||||
| -rw-r--r-- | drivers/usb/host/isp1760-hcd.h | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/drivers/usb/host/isp1760-hcd.c b/drivers/usb/host/isp1760-hcd.c index b899f1a59c26..8ee2f4159845 100644 --- a/drivers/usb/host/isp1760-hcd.c +++ b/drivers/usb/host/isp1760-hcd.c | |||
| @@ -2235,9 +2235,10 @@ void deinit_kmem_cache(void) | |||
| 2235 | kmem_cache_destroy(qh_cachep); | 2235 | kmem_cache_destroy(qh_cachep); |
| 2236 | } | 2236 | } |
| 2237 | 2237 | ||
| 2238 | struct usb_hcd *isp1760_register(u64 res_start, u64 res_len, int irq, | 2238 | struct usb_hcd *isp1760_register(phys_addr_t res_start, resource_size_t res_len, |
| 2239 | u64 irqflags, struct device *dev, const char *busname, | 2239 | int irq, unsigned long irqflags, |
| 2240 | unsigned int devflags) | 2240 | struct device *dev, const char *busname, |
| 2241 | unsigned int devflags) | ||
| 2241 | { | 2242 | { |
| 2242 | struct usb_hcd *hcd; | 2243 | struct usb_hcd *hcd; |
| 2243 | struct isp1760_hcd *priv; | 2244 | struct isp1760_hcd *priv; |
diff --git a/drivers/usb/host/isp1760-hcd.h b/drivers/usb/host/isp1760-hcd.h index a9daea587962..462f4943cb1b 100644 --- a/drivers/usb/host/isp1760-hcd.h +++ b/drivers/usb/host/isp1760-hcd.h | |||
| @@ -2,9 +2,10 @@ | |||
| 2 | #define _ISP1760_HCD_H_ | 2 | #define _ISP1760_HCD_H_ |
| 3 | 3 | ||
| 4 | /* exports for if */ | 4 | /* exports for if */ |
| 5 | struct usb_hcd *isp1760_register(u64 res_start, u64 res_len, int irq, | 5 | struct usb_hcd *isp1760_register(phys_addr_t res_start, resource_size_t res_len, |
| 6 | u64 irqflags, struct device *dev, const char *busname, | 6 | int irq, unsigned long irqflags, |
| 7 | unsigned int devflags); | 7 | struct device *dev, const char *busname, |
| 8 | unsigned int devflags); | ||
| 8 | int init_kmem_once(void); | 9 | int init_kmem_once(void); |
| 9 | void deinit_kmem_cache(void); | 10 | void deinit_kmem_cache(void); |
| 10 | 11 | ||
