Lines Matching refs:mlxplat_dev
4697 static struct platform_device *mlxplat_dev; variable
5184 mlxplat_dev = platform_device_register_simple(MLX_PLAT_DEVICE_NAME, PLATFORM_DEVID_NONE, in mlxplat_init()
5188 if (IS_ERR(mlxplat_dev)) in mlxplat_init()
5189 return PTR_ERR(mlxplat_dev); in mlxplat_init()
5191 priv = devm_kzalloc(&mlxplat_dev->dev, sizeof(struct mlxplat_priv), in mlxplat_init()
5197 platform_set_drvdata(mlxplat_dev, priv); in mlxplat_init()
5199 mlxplat_mlxcpld_regmap_ctx.base = devm_ioport_map(&mlxplat_dev->dev, in mlxplat_init()
5209 priv->regmap = devm_regmap_init(&mlxplat_dev->dev, NULL, in mlxplat_init()
5224 priv->pdev_i2c = platform_device_register_resndata(&mlxplat_dev->dev, "i2c_mlxcpld", in mlxplat_init()
5248 platform_device_register_resndata(&mlxplat_dev->dev, in mlxplat_init()
5272 platform_device_register_resndata(&mlxplat_dev->dev, "leds-mlxreg", in mlxplat_init()
5284 priv->pdev_io_regs = platform_device_register_resndata(&mlxplat_dev->dev, in mlxplat_init()
5298 priv->pdev_fan = platform_device_register_resndata(&mlxplat_dev->dev, "mlxreg-fan", in mlxplat_init()
5316 platform_device_register_resndata(&mlxplat_dev->dev, "mlx-wdt", j, in mlxplat_init()
5353 platform_device_unregister(mlxplat_dev); in mlxplat_init()
5361 struct mlxplat_priv *priv = platform_get_drvdata(mlxplat_dev); in mlxplat_exit()
5379 platform_device_unregister(mlxplat_dev); in mlxplat_exit()