Searched refs:pdev_i2c (Results 1 – 2 of 2) sorted by relevance
152 struct platform_device *pdev_i2c; member1279 nvsw_sn2201->pdev_i2c = platform_device_register_resndata(nvsw_sn2201->dev, "i2c_mlxcpld", in nvsw_sn2201_config_pre_init()1285 if (IS_ERR(nvsw_sn2201->pdev_i2c)) in nvsw_sn2201_config_pre_init()1286 return PTR_ERR(nvsw_sn2201->pdev_i2c); in nvsw_sn2201_config_pre_init()1347 if (nvsw_sn2201->pdev_i2c) in nvsw_sn2201_remove()1348 platform_device_unregister(nvsw_sn2201->pdev_i2c); in nvsw_sn2201_remove()
396 struct platform_device *pdev_i2c; member8436 if (!priv->pdev_i2c) { in mlxplat_i2c_mux_topology_init()8443 priv->pdev_mux[i] = platform_device_register_resndata(&priv->pdev_i2c->dev, in mlxplat_i2c_mux_topology_init()8496 priv->pdev_i2c = platform_device_register_resndata(&mlxplat_dev->dev, "i2c_mlxcpld", in mlxplat_i2c_main_init()8500 if (IS_ERR(priv->pdev_i2c)) { in mlxplat_i2c_main_init()8501 err = PTR_ERR(priv->pdev_i2c); in mlxplat_i2c_main_init()8514 platform_device_unregister(priv->pdev_i2c); in mlxplat_i2c_main_init()8524 if (priv->pdev_i2c) in mlxplat_i2c_main_exit()8525 platform_device_unregister(priv->pdev_i2c); in mlxplat_i2c_main_exit()