Commit 5a6356ac authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Felipe Balbi

usb: isp1760: Prefix init_kmem_once and deinit_kmem_cache with isp1760_

The two functions are specific to the driver but have very generic
names, subject to collisions. Rename them.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 30573751
...@@ -2177,7 +2177,7 @@ static const struct hc_driver isp1760_hc_driver = { ...@@ -2177,7 +2177,7 @@ static const struct hc_driver isp1760_hc_driver = {
.clear_tt_buffer_complete = isp1760_clear_tt_buffer_complete, .clear_tt_buffer_complete = isp1760_clear_tt_buffer_complete,
}; };
int __init init_kmem_once(void) int __init isp1760_init_kmem_once(void)
{ {
urb_listitem_cachep = kmem_cache_create("isp1760_urb_listitem", urb_listitem_cachep = kmem_cache_create("isp1760_urb_listitem",
sizeof(struct urb_listitem), 0, SLAB_TEMPORARY | sizeof(struct urb_listitem), 0, SLAB_TEMPORARY |
...@@ -2204,7 +2204,7 @@ int __init init_kmem_once(void) ...@@ -2204,7 +2204,7 @@ int __init init_kmem_once(void)
return 0; return 0;
} }
void deinit_kmem_cache(void) void isp1760_deinit_kmem_cache(void)
{ {
kmem_cache_destroy(qtd_cachep); kmem_cache_destroy(qtd_cachep);
kmem_cache_destroy(qh_cachep); kmem_cache_destroy(qh_cachep);
......
...@@ -7,8 +7,8 @@ int isp1760_register(phys_addr_t res_start, resource_size_t res_len, int irq, ...@@ -7,8 +7,8 @@ int isp1760_register(phys_addr_t res_start, resource_size_t res_len, int irq,
const char *busname, unsigned int devflags); const char *busname, unsigned int devflags);
void isp1760_unregister(struct device *dev); void isp1760_unregister(struct device *dev);
int init_kmem_once(void); int isp1760_init_kmem_once(void);
void deinit_kmem_cache(void); void isp1760_deinit_kmem_cache(void);
/* EHCI capability registers */ /* EHCI capability registers */
#define HC_CAPLENGTH 0x00 #define HC_CAPLENGTH 0x00
......
...@@ -301,7 +301,7 @@ static int __init isp1760_init(void) ...@@ -301,7 +301,7 @@ static int __init isp1760_init(void)
{ {
int ret, any_ret = -ENODEV; int ret, any_ret = -ENODEV;
init_kmem_once(); isp1760_init_kmem_once();
ret = platform_driver_register(&isp1760_plat_driver); ret = platform_driver_register(&isp1760_plat_driver);
if (!ret) if (!ret)
...@@ -313,7 +313,7 @@ static int __init isp1760_init(void) ...@@ -313,7 +313,7 @@ static int __init isp1760_init(void)
#endif #endif
if (any_ret) if (any_ret)
deinit_kmem_cache(); isp1760_deinit_kmem_cache();
return any_ret; return any_ret;
} }
module_init(isp1760_init); module_init(isp1760_init);
...@@ -324,6 +324,6 @@ static void __exit isp1760_exit(void) ...@@ -324,6 +324,6 @@ static void __exit isp1760_exit(void)
#ifdef CONFIG_PCI #ifdef CONFIG_PCI
pci_unregister_driver(&isp1761_pci_driver); pci_unregister_driver(&isp1761_pci_driver);
#endif #endif
deinit_kmem_cache(); isp1760_deinit_kmem_cache();
} }
module_exit(isp1760_exit); module_exit(isp1760_exit);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment