Lines Matching refs:pdev

50 	struct platform_device		*pdev;  member
312 struct platform_device *pdev = msic->pdev; in intel_msic_init_devices() local
313 struct intel_msic_platform_data *pdata = dev_get_platdata(&pdev->dev); in intel_msic_init_devices()
326 ret = devm_gpio_request_one(&pdev->dev, gpio, in intel_msic_init_devices()
329 dev_err(&pdev->dev, "failed to register OCD GPIO\n"); in intel_msic_init_devices()
335 dev_err(&pdev->dev, "no IRQ number for OCD GPIO\n"); in intel_msic_init_devices()
347 ret = mfd_add_devices(&pdev->dev, -1, &msic_devs[i], 1, NULL, in intel_msic_init_devices()
353 ret = mfd_add_devices(&pdev->dev, 0, msic_other_devs, in intel_msic_init_devices()
361 mfd_remove_devices(&pdev->dev); in intel_msic_init_devices()
368 struct platform_device *pdev = msic->pdev; in intel_msic_remove_devices() local
370 mfd_remove_devices(&pdev->dev); in intel_msic_remove_devices()
373 static int intel_msic_probe(struct platform_device *pdev) in intel_msic_probe() argument
375 struct intel_msic_platform_data *pdata = dev_get_platdata(&pdev->dev); in intel_msic_probe()
382 dev_err(&pdev->dev, "no platform data passed\n"); in intel_msic_probe()
389 dev_err(&pdev->dev, "failed to identify the MSIC chip (ID0)\n"); in intel_msic_probe()
395 dev_err(&pdev->dev, "failed to identify the MSIC chip (ID1)\n"); in intel_msic_probe()
400 dev_err(&pdev->dev, "invalid vendor ID: %x, %x\n", id0, id1); in intel_msic_probe()
404 msic = devm_kzalloc(&pdev->dev, sizeof(*msic), GFP_KERNEL); in intel_msic_probe()
410 msic->pdev = pdev; in intel_msic_probe()
416 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in intel_msic_probe()
417 msic->irq_base = devm_ioremap_resource(&pdev->dev, res); in intel_msic_probe()
421 platform_set_drvdata(pdev, msic); in intel_msic_probe()
425 dev_err(&pdev->dev, "failed to initialize MSIC devices\n"); in intel_msic_probe()
429 dev_info(&pdev->dev, "Intel MSIC version %c%d (vendor %#x)\n", in intel_msic_probe()
436 static int intel_msic_remove(struct platform_device *pdev) in intel_msic_remove() argument
438 struct intel_msic *msic = platform_get_drvdata(pdev); in intel_msic_remove()