Lines Matching refs:mlxplat_dev
2469 static struct platform_device *mlxplat_dev; variable
2841 mlxplat_dev = platform_device_register_simple(MLX_PLAT_DEVICE_NAME, -1, in mlxplat_init()
2845 if (IS_ERR(mlxplat_dev)) in mlxplat_init()
2846 return PTR_ERR(mlxplat_dev); in mlxplat_init()
2848 priv = devm_kzalloc(&mlxplat_dev->dev, sizeof(struct mlxplat_priv), in mlxplat_init()
2854 platform_set_drvdata(mlxplat_dev, priv); in mlxplat_init()
2856 mlxplat_mlxcpld_regmap_ctx.base = devm_ioport_map(&mlxplat_dev->dev, in mlxplat_init()
2866 priv->regmap = devm_regmap_init(&mlxplat_dev->dev, NULL, in mlxplat_init()
2882 &mlxplat_dev->dev, "i2c_mlxcpld", in mlxplat_init()
2906 &mlxplat_dev->dev, "mlxreg-hotplug", in mlxplat_init()
2928 &mlxplat_dev->dev, "leds-mlxreg", in mlxplat_init()
2940 &mlxplat_dev->dev, "mlxreg-io", in mlxplat_init()
2954 &mlxplat_dev->dev, "mlxreg-fan", in mlxplat_init()
2972 &mlxplat_dev->dev, "mlx-wdt", in mlxplat_init()
3008 platform_device_unregister(mlxplat_dev); in mlxplat_init()
3016 struct mlxplat_priv *priv = platform_get_drvdata(mlxplat_dev); in mlxplat_exit()
3032 platform_device_unregister(mlxplat_dev); in mlxplat_exit()