Searched refs:userdev (Results 1 – 1 of 1) sorted by relevance
871 static struct atmel_pmecc *atmel_pmecc_get_by_node(struct device *userdev, in atmel_pmecc_get_by_node() argument895 devres_add(userdev, ptr); in atmel_pmecc_get_by_node()932 struct atmel_pmecc *devm_atmel_pmecc_get(struct device *userdev) in devm_atmel_pmecc_get() argument937 if (!userdev) in devm_atmel_pmecc_get()940 if (!userdev->of_node) in devm_atmel_pmecc_get()943 np = of_parse_phandle(userdev->of_node, "ecc-engine", 0); in devm_atmel_pmecc_get()945 pmecc = atmel_pmecc_get_by_node(userdev, np); in devm_atmel_pmecc_get()953 struct platform_device *pdev = to_platform_device(userdev); in devm_atmel_pmecc_get()958 if (!of_property_read_bool(userdev->of_node, in devm_atmel_pmecc_get()966 userdev->of_node); in devm_atmel_pmecc_get()