Exemplo n.º 1
0
static int rmi_f09_init(struct rmi_function_container *fc)
{
	int rc;

	dev_info(&fc->dev, "Intializing F09 values.");

	rc = rmi_f09_alloc_memory(fc);
	if (rc < 0)
		goto error_exit;

	rc = rmi_f09_initialize(fc);
	if (rc < 0)
		goto error_exit;

	rc = rmi_f09_create_sysfs(fc);
	if (rc < 0)
		goto error_exit;

	return 0;

error_exit:
	rmi_f09_free_memory(fc);

	return rc;
}
Exemplo n.º 2
0
static int rmi_f09_probe(struct rmi_function_dev *fn_dev)
{
	int rc;

	dev_info(&fn_dev->dev, "Intializing F09 values.");

	rc = rmi_f09_alloc_memory(fn_dev);
	if (rc < 0)
		return rc;

	rc = rmi_f09_initialize(fn_dev);
	if (rc < 0)
		return rc;

	rc = rmi_f09_create_sysfs(fn_dev);
	if (rc < 0)
		return rc;

	return 0;
}