Lines Matching refs:mlxplat_dev
1352 static struct platform_device *mlxplat_dev; variable
1600 mlxplat_dev = platform_device_register_simple(MLX_PLAT_DEVICE_NAME, -1, in mlxplat_init()
1604 if (IS_ERR(mlxplat_dev)) in mlxplat_init()
1605 return PTR_ERR(mlxplat_dev); in mlxplat_init()
1607 priv = devm_kzalloc(&mlxplat_dev->dev, sizeof(struct mlxplat_priv), in mlxplat_init()
1613 platform_set_drvdata(mlxplat_dev, priv); in mlxplat_init()
1629 &mlxplat_dev->dev, in mlxplat_init()
1639 mlxplat_mlxcpld_regmap_ctx.base = devm_ioport_map(&mlxplat_dev->dev, in mlxplat_init()
1646 mlxplat_hotplug->regmap = devm_regmap_init(&mlxplat_dev->dev, NULL, in mlxplat_init()
1655 &mlxplat_dev->dev, "mlxreg-hotplug", in mlxplat_init()
1677 &mlxplat_dev->dev, "leds-mlxreg", in mlxplat_init()
1689 &mlxplat_dev->dev, "mlxreg-io", in mlxplat_init()
1703 &mlxplat_dev->dev, "mlxreg-fan", in mlxplat_init()
1736 platform_device_unregister(mlxplat_dev); in mlxplat_init()
1744 struct mlxplat_priv *priv = platform_get_drvdata(mlxplat_dev); in mlxplat_exit()
1758 platform_device_unregister(mlxplat_dev); in mlxplat_exit()