Lines Matching refs:mlxplat_dev
1810 static struct platform_device *mlxplat_dev; variable
2084 mlxplat_dev = platform_device_register_simple(MLX_PLAT_DEVICE_NAME, -1, in mlxplat_init()
2088 if (IS_ERR(mlxplat_dev)) in mlxplat_init()
2089 return PTR_ERR(mlxplat_dev); in mlxplat_init()
2091 priv = devm_kzalloc(&mlxplat_dev->dev, sizeof(struct mlxplat_priv), in mlxplat_init()
2097 platform_set_drvdata(mlxplat_dev, priv); in mlxplat_init()
2099 mlxplat_mlxcpld_regmap_ctx.base = devm_ioport_map(&mlxplat_dev->dev, in mlxplat_init()
2109 priv->regmap = devm_regmap_init(&mlxplat_dev->dev, NULL, in mlxplat_init()
2125 &mlxplat_dev->dev, "i2c_mlxcpld", in mlxplat_init()
2149 &mlxplat_dev->dev, "mlxreg-hotplug", in mlxplat_init()
2171 &mlxplat_dev->dev, "leds-mlxreg", in mlxplat_init()
2183 &mlxplat_dev->dev, "mlxreg-io", in mlxplat_init()
2197 &mlxplat_dev->dev, "mlxreg-fan", in mlxplat_init()
2212 &mlxplat_dev->dev, "mlx-wdt", in mlxplat_init()
2248 platform_device_unregister(mlxplat_dev); in mlxplat_init()
2256 struct mlxplat_priv *priv = platform_get_drvdata(mlxplat_dev); in mlxplat_exit()
2272 platform_device_unregister(mlxplat_dev); in mlxplat_exit()