/* memstick_alloc_host - allocate a memstick_host structure @extra: size of the user private data to allocate @dev: parent device of the host  */
struct memstick_host* memstick_alloc_host(unsigned int extra, struct device *dev)
/* memstick_alloc_host - allocate a memstick_host structure @extra: size of the user private data to allocate @dev: parent device of the host  */
struct memstick_host* memstick_alloc_host(unsigned int extra, struct device *dev)
{
	struct memstick_host *host;
	host = kzalloc(sizeof(struct memstick_host) + extra, GFP_KERNEL);
	if (host) {
		mutex_init(&host->lock);
		INIT_WORK(&host->media_checker, memstick_check);
		host->dev.class = &memstick_host_class;
		host->dev.parent = dev;
		device_initialize(&host->dev);
	}
	return host;
}