mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-03 11:13:56 +08:00
soc: samsung: chipid: Drop "syscon" compatible requirement
As we dropped the requirement of "syscon" compatible in the chipid nodes rework code acquiring the regmap to use device_node_to_regmap() rather than syscon_node_to_regmap(). Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
This commit is contained in:
parent
5ea428595c
commit
02fb29882d
@ -50,12 +50,20 @@ static int __init exynos_chipid_early_init(void)
|
|||||||
struct soc_device_attribute *soc_dev_attr;
|
struct soc_device_attribute *soc_dev_attr;
|
||||||
struct soc_device *soc_dev;
|
struct soc_device *soc_dev;
|
||||||
struct device_node *root;
|
struct device_node *root;
|
||||||
|
struct device_node *syscon;
|
||||||
struct regmap *regmap;
|
struct regmap *regmap;
|
||||||
u32 product_id;
|
u32 product_id;
|
||||||
u32 revision;
|
u32 revision;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
regmap = syscon_regmap_lookup_by_compatible("samsung,exynos4210-chipid");
|
syscon = of_find_compatible_node(NULL, NULL,
|
||||||
|
"samsung,exynos4210-chipid");
|
||||||
|
if (!syscon)
|
||||||
|
return ENODEV;
|
||||||
|
|
||||||
|
regmap = device_node_to_regmap(syscon);
|
||||||
|
of_node_put(syscon);
|
||||||
|
|
||||||
if (IS_ERR(regmap))
|
if (IS_ERR(regmap))
|
||||||
return PTR_ERR(regmap);
|
return PTR_ERR(regmap);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user