Skip to content

Commit f9031f2

Browse files
ctmarinasgregkh
authored andcommitted
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>
1 parent a2c2706 commit f9031f2

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

‎drivers/usb/host/isp1760-hcd.c‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2235,9 +2235,10 @@ void deinit_kmem_cache(void)
22352235
kmem_cache_destroy(qh_cachep);
22362236
}
22372237

2238-
struct usb_hcd *isp1760_register(u64 res_start, u64 res_len, int irq,
2239-
u64 irqflags, struct device *dev, const char *busname,
2240-
unsigned int devflags)
2238+
struct usb_hcd *isp1760_register(phys_addr_t res_start, resource_size_t res_len,
2239+
int irq, unsigned long irqflags,
2240+
struct device *dev, const char *busname,
2241+
unsigned int devflags)
22412242
{
22422243
struct usb_hcd *hcd;
22432244
struct isp1760_hcd *priv;

‎drivers/usb/host/isp1760-hcd.h‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
#define _ISP1760_HCD_H_
33

44
/* exports for if */
5-
struct usb_hcd *isp1760_register(u64 res_start, u64 res_len, int irq,
6-
u64 irqflags, struct device *dev, const char *busname,
7-
unsigned int devflags);
5+
struct usb_hcd *isp1760_register(phys_addr_t res_start, resource_size_t res_len,
6+
int irq, unsigned long irqflags,
7+
struct device *dev, const char *busname,
8+
unsigned int devflags);
89
int init_kmem_once(void);
910
void deinit_kmem_cache(void);
1011

0 commit comments

Comments
 (0)