Re: [PATCH 01/19] usb: dwc2: move debugfs code to a separate file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/9/2015 8:04 AM, Mian Yousaf Kaukab wrote:
> +
> +int dwc2_debugfs_init(struct dwc2_hsotg *hsotg)
> +{
> +	int			ret;
> +
> +	hsotg->debug_root = debugfs_create_dir(dev_name(hsotg->dev), NULL);
> +	if (!hsotg->debug_root) {
> +		ret = -ENOMEM;
> +		goto err0;
> +	}
> +
> +	/* Add gadget debugfs nodes */
> +	s3c_hsotg_create_debug(hsotg);
> +err0:
> +	return ret;
> +}

Need export for this function when dwc2-platform is configured as a module.

> +
> +void dwc2_debugfs_exit(struct dwc2_hsotg *hsotg)
> +{
> +	debugfs_remove_recursive(hsotg->debug_root);
> +	hsotg->debug_root = NULL;
> +}

This doesn't seem to be called from anywhere.

John


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux