Lines Matching refs:tmp_res
1011 struct mlxbf_i2c_resource *tmp_res; in mlxbf_i2c_init_resource() local
1017 tmp_res = devm_kzalloc(dev, sizeof(struct mlxbf_i2c_resource), in mlxbf_i2c_init_resource()
1019 if (!tmp_res) in mlxbf_i2c_init_resource()
1022 tmp_res->params = platform_get_resource(pdev, IORESOURCE_MEM, type); in mlxbf_i2c_init_resource()
1023 if (!tmp_res->params) { in mlxbf_i2c_init_resource()
1024 devm_kfree(dev, tmp_res); in mlxbf_i2c_init_resource()
1028 tmp_res->io = devm_ioremap_resource(dev, tmp_res->params); in mlxbf_i2c_init_resource()
1029 if (IS_ERR(tmp_res->io)) { in mlxbf_i2c_init_resource()
1030 devm_kfree(dev, tmp_res); in mlxbf_i2c_init_resource()
1031 return PTR_ERR(tmp_res->io); in mlxbf_i2c_init_resource()
1034 tmp_res->type = type; in mlxbf_i2c_init_resource()
1036 *res = tmp_res; in mlxbf_i2c_init_resource()