Searched refs:pdev_i2c (Results 1 – 2 of 2) sorted by relevance
143 struct platform_device *pdev_i2c; member1182 nvsw_sn2201->pdev_i2c = platform_device_register_resndata(nvsw_sn2201->dev, "i2c_mlxcpld", in nvsw_sn2201_config_pre_init()1188 if (IS_ERR(nvsw_sn2201->pdev_i2c)) in nvsw_sn2201_config_pre_init()1189 return PTR_ERR(nvsw_sn2201->pdev_i2c); in nvsw_sn2201_config_pre_init()1236 if (nvsw_sn2201->pdev_i2c) in nvsw_sn2201_remove()1237 platform_device_unregister(nvsw_sn2201->pdev_i2c); in nvsw_sn2201_remove()
294 struct platform_device *pdev_i2c; member5224 priv->pdev_i2c = platform_device_register_resndata(&mlxplat_dev->dev, "i2c_mlxcpld", in mlxplat_init()5228 if (IS_ERR(priv->pdev_i2c)) { in mlxplat_init()5229 err = PTR_ERR(priv->pdev_i2c); in mlxplat_init()5234 priv->pdev_mux[i] = platform_device_register_resndata(&priv->pdev_i2c->dev, in mlxplat_init()5351 platform_device_unregister(priv->pdev_i2c); in mlxplat_init()5378 platform_device_unregister(priv->pdev_i2c); in mlxplat_exit()