Home
last modified time | relevance | path

Searched refs:pdev_wd (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/arch/mips/sgi-ip30/
H A Dip30-xtalk.c43 struct platform_device *pdev_wd; in bridge_platform_create() local
62 pdev_wd = platform_device_alloc("sgi_w1", PLATFORM_DEVID_AUTO); in bridge_platform_create()
63 if (!pdev_wd) { in bridge_platform_create()
67 if (platform_device_add_resources(pdev_wd, &w1_res, 1)) { in bridge_platform_create()
71 if (platform_device_add_data(pdev_wd, wd, sizeof(*wd))) { in bridge_platform_create()
75 if (platform_device_add(pdev_wd)) { in bridge_platform_create()
128 platform_device_unregister(pdev_wd); in bridge_platform_create()
131 platform_device_put(pdev_wd); in bridge_platform_create()
/openbmc/linux/arch/mips/sgi-ip27/
H A Dip27-xtalk.c30 struct platform_device *pdev_wd; in bridge_platform_create() local
52 pdev_wd = platform_device_alloc("sgi_w1", PLATFORM_DEVID_AUTO); in bridge_platform_create()
53 if (!pdev_wd) { in bridge_platform_create()
57 if (platform_device_add_resources(pdev_wd, &w1_res, 1)) { in bridge_platform_create()
61 if (platform_device_add_data(pdev_wd, wd, sizeof(*wd))) { in bridge_platform_create()
65 if (platform_device_add(pdev_wd)) { in bridge_platform_create()
119 platform_device_unregister(pdev_wd); in bridge_platform_create()
122 platform_device_put(pdev_wd); in bridge_platform_create()
/openbmc/linux/drivers/platform/x86/
H A Dmlx-platform.c362 struct platform_device *pdev_wd[MLXPLAT_CPLD_WD_MAX_DEVS]; member
6381 priv->pdev_wd[i] = in mlxplat_post_init()
6385 if (IS_ERR(priv->pdev_wd[i])) { in mlxplat_post_init()
6386 err = PTR_ERR(priv->pdev_wd[i]); in mlxplat_post_init()
6396 platform_device_unregister(priv->pdev_wd[i]); in mlxplat_post_init()
6415 platform_device_unregister(priv->pdev_wd[i]); in mlxplat_pre_exit()