IPQ40xx: clk: use dev_read_addr()
Lets convert the driver to use dev_read_addr() instead of the devfdt_get_addr(). While we are here, lets also alphabetise the includes. Signed-off-by: Robert Marko <robert.marko@sartura.hr> Cc: Luka Perkov <luka.perkov@sartura.hr>
This commit is contained in:
parent
48aee0afb6
commit
90534536a3
@ -8,8 +8,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <clk-uclass.h>
|
#include <clk-uclass.h>
|
||||||
|
#include <common.h>
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ static int msm_clk_probe(struct udevice *dev)
|
|||||||
{
|
{
|
||||||
struct msm_clk_priv *priv = dev_get_priv(dev);
|
struct msm_clk_priv *priv = dev_get_priv(dev);
|
||||||
|
|
||||||
priv->base = devfdt_get_addr(dev);
|
priv->base = dev_read_addr(dev);
|
||||||
if (priv->base == FDT_ADDR_T_NONE)
|
if (priv->base == FDT_ADDR_T_NONE)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user