mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
Microchip clock updates for v7.3
This update includes: - use of_property_read_reg() instead of of_property_read_u8() to properly parse the reg DT property -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTsZ8eserC1pmhwqDmejrg/N2X7/QUCanwNUQAKCRCejrg/N2X7 /c7UAP94EFEZVWabWmwTrZRFn0gYyM6hy44suT5q3i5L/Ga9GgEAxwkaIilVSmTk G7R4fS8e12222dtlkTQqRnHxiGxh4wY= =gD4j -----END PGP SIGNATURE----- gpgsig -----BEGIN PGP SIGNATURE----- iQJIBAABCAAyFiEE9L57QeeUxqYDyoaDrQKIl8bklSUFAmp+ecoUHHN3Ym95ZEBj aHJvbWl1bS5vcmcACgkQrQKIl8bklSXLtg/+O55nxvbOWWGU9WkW2eH6wHwDc+kX YnWbXnRYOZjdZ3tcQvQxGbbboBgu5j0gt2UoBZeFTlu4wf2iJM4KaPQEanpeeSf9 Rr1BroJnRUVqNtaDIekXdagxOUeaH1ProTNPCc1RHbRIl53XDF3vBambKQe2Mm/N SvzW6pgcxyqMNq01o2GRHoj7RpIskzDqQFqzuMY9GpR8Dt9HEivwM1E/sFKl9riI xUWcReASsqNT6BstviSemlPXQ2CBEBxTTiDOsRx9QlbRr70ArTGWyRqWVnjVz/9/ JY6yaQ8X83nTWw6XkJk5qTuWNHYo4PpXXwGvu3SLeWmjCPc5HJh7u5zWz9Y2ckRL RYATzbm6tMfy+Ik79b1hBHdhNxoV7/uwnPPhweyW0DpLDmgoBpZqrcDvLlnAYsL8 S9XQOteeYAzeqfmoS25R3zmtjmTTovBqJURuUt3DKR+YXjRCRxui006olfSXcwj2 D0xLHx+MpTZXKa0pLOnh/2vztX9kfUGaaN1floAFz48RR/+07EdSBB0TTYaGDs97 zZWgN+n5dy7YnlHzAvVNkVgkAtXAQvgBNv3KvbNPCWU14TYYF9PJ9wJMNs/1XFev RIJChx+NEKyc/wD7loPXyRGZugxUbemQx/41UcfjO/uJFRCltg9Js/0olOKTT7Tt jqluJdZDoov3vmw= =HV0C -----END PGP SIGNATURE----- Merge tag 'clk-microchip-7.3' of https://git.kernel.org/pub/scm/linux/kernel/git/at91/linux into clk-microchip Pull Microchip clk driver updates from Claudiu Beznea: - use of_property_read_reg() instead of of_property_read_u8() to properly parse the reg DT property in the microchip driver * tag 'clk-microchip-7.3' of https://git.kernel.org/pub/scm/linux/kernel/git/at91/linux: clk: at91: Read "reg" with helper
This commit is contained in:
commit
fb96dea9cf
|
|
@ -2,6 +2,7 @@
|
|||
#include <linux/clk-provider.h>
|
||||
#include <linux/clk/at91_pmc.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/of_address.h>
|
||||
#include <linux/mfd/syscon.h>
|
||||
#include <linux/regmap.h>
|
||||
#include <linux/slab.h>
|
||||
|
|
@ -217,7 +218,7 @@ CLK_OF_DECLARE(of_sama5d4_clk_h32mx_setup, "atmel,sama5d4-clk-h32mx",
|
|||
static void __init of_sama5d2_clk_i2s_mux_setup(struct device_node *np)
|
||||
{
|
||||
struct regmap *regmap_sfr;
|
||||
u8 bus_id;
|
||||
u64 bus_id;
|
||||
const char *parent_names[2];
|
||||
struct device_node *i2s_mux_np;
|
||||
struct clk_hw *hw;
|
||||
|
|
@ -228,7 +229,7 @@ static void __init of_sama5d2_clk_i2s_mux_setup(struct device_node *np)
|
|||
return;
|
||||
|
||||
for_each_child_of_node(np, i2s_mux_np) {
|
||||
if (of_property_read_u8(i2s_mux_np, "reg", &bus_id))
|
||||
if (of_property_read_reg(i2s_mux_np, 0, &bus_id, NULL))
|
||||
continue;
|
||||
|
||||
if (bus_id > I2S_BUS_NR)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user