Searched refs:pdev_i2c (Results 1 – 2 of 2) sorted by relevance
152 struct platform_device *pdev_i2c; member 1279 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()
379 * @pdev_i2c - i2c controller platform device394 struct platform_device *pdev_i2c; member 7952 if (!priv->pdev_i2c) { in mlxplat_i2c_mux_topology_init() 7959 priv->pdev_mux[i] = platform_device_register_resndata(&priv->pdev_i2c->dev, in mlxplat_i2c_mux_topology_init() 8012 priv->pdev_i2c = platform_device_register_resndata(&mlxplat_dev->dev, "i2c_mlxcpld", in mlxplat_i2c_main_init() 8016 if (IS_ERR(priv->pdev_i2c)) { in mlxplat_i2c_main_init() 8017 err = PTR_ERR(priv->pdev_i2c); in mlxplat_i2c_main_init() 8030 platform_device_unregister(priv->pdev_i2c); in mlxplat_i2c_main_init() 8040 if (priv->pdev_i2c) in mlxplat_i2c_main_exit() 8041 platform_device_unregister(priv->pdev_i2c); in mlxplat_i2c_main_exit() [all...]