Searched refs:pdev_i2c (Results 1 – 2 of 2) sorted by relevance
147 struct platform_device *pdev_i2c; member1186 nvsw_sn2201->pdev_i2c = platform_device_register_resndata(nvsw_sn2201->dev, "i2c_mlxcpld", in nvsw_sn2201_config_pre_init()1192 if (IS_ERR(nvsw_sn2201->pdev_i2c)) in nvsw_sn2201_config_pre_init()1193 return PTR_ERR(nvsw_sn2201->pdev_i2c); in nvsw_sn2201_config_pre_init()1243 if (nvsw_sn2201->pdev_i2c) in nvsw_sn2201_remove()1244 platform_device_unregister(nvsw_sn2201->pdev_i2c); in nvsw_sn2201_remove()
356 struct platform_device *pdev_i2c; member6439 if (!priv->pdev_i2c) { in mlxplat_i2c_mux_topology_init()6446 priv->pdev_mux[i] = platform_device_register_resndata(&priv->pdev_i2c->dev, in mlxplat_i2c_mux_topology_init()6499 priv->pdev_i2c = platform_device_register_resndata(&mlxplat_dev->dev, "i2c_mlxcpld", in mlxplat_i2c_main_init()6503 if (IS_ERR(priv->pdev_i2c)) { in mlxplat_i2c_main_init()6504 err = PTR_ERR(priv->pdev_i2c); in mlxplat_i2c_main_init()6517 platform_device_unregister(priv->pdev_i2c); in mlxplat_i2c_main_init()6527 if (priv->pdev_i2c) in mlxplat_i2c_main_exit()6528 platform_device_unregister(priv->pdev_i2c); in mlxplat_i2c_main_exit()