diff options
Diffstat (limited to 'drivers/clocksource/ingenic-ost.c')
| -rw-r--r-- | drivers/clocksource/ingenic-ost.c | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/drivers/clocksource/ingenic-ost.c b/drivers/clocksource/ingenic-ost.c index 029efc2731b4..06d25754e606 100644 --- a/drivers/clocksource/ingenic-ost.c +++ b/drivers/clocksource/ingenic-ost.c @@ -88,9 +88,9 @@ static int __init ingenic_ost_probe(struct platform_device *pdev)  		return PTR_ERR(ost->regs);  	map = device_node_to_regmap(dev->parent->of_node); -	if (!map) { +	if (IS_ERR(map)) {  		dev_err(dev, "regmap not found"); -		return -EINVAL; +		return PTR_ERR(map);  	}  	ost->clk = devm_clk_get(dev, "ost"); @@ -167,13 +167,14 @@ static const struct ingenic_ost_soc_info jz4725b_ost_soc_info = {  	.is64bit = false,  }; -static const struct ingenic_ost_soc_info jz4770_ost_soc_info = { +static const struct ingenic_ost_soc_info jz4760b_ost_soc_info = {  	.is64bit = true,  };  static const struct of_device_id ingenic_ost_of_match[] = {  	{ .compatible = "ingenic,jz4725b-ost", .data = &jz4725b_ost_soc_info, }, -	{ .compatible = "ingenic,jz4770-ost", .data = &jz4770_ost_soc_info, }, +	{ .compatible = "ingenic,jz4760b-ost", .data = &jz4760b_ost_soc_info, }, +	{ .compatible = "ingenic,jz4770-ost", .data = &jz4760b_ost_soc_info, },  	{ }  }; | 
