clk-aspeed.c (c13aca79ff3c4af5fd31a5b2743a90eba6e36a26) | clk-aspeed.c (acafe7e30216166a17e6e226aadc3ecb63993242) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2 3#define pr_fmt(fmt) "clk-aspeed: " fmt 4 5#include <linux/clk-provider.h> 6#include <linux/mfd/syscon.h> 7#include <linux/of_address.h> 8#include <linux/of_device.h> --- 613 unchanged lines hidden (view full) --- 622 u32 val; 623 int ret; 624 int i; 625 626 scu_base = of_iomap(np, 0); 627 if (!scu_base) 628 return; 629 | 1// SPDX-License-Identifier: GPL-2.0+ 2 3#define pr_fmt(fmt) "clk-aspeed: " fmt 4 5#include <linux/clk-provider.h> 6#include <linux/mfd/syscon.h> 7#include <linux/of_address.h> 8#include <linux/of_device.h> --- 613 unchanged lines hidden (view full) --- 622 u32 val; 623 int ret; 624 int i; 625 626 scu_base = of_iomap(np, 0); 627 if (!scu_base) 628 return; 629 |
630 aspeed_clk_data = kzalloc(sizeof(*aspeed_clk_data) + 631 sizeof(*aspeed_clk_data->hws) * ASPEED_NUM_CLKS, 632 GFP_KERNEL); | 630 aspeed_clk_data = kzalloc(struct_size(aspeed_clk_data, hws, 631 ASPEED_NUM_CLKS), 632 GFP_KERNEL); |
633 if (!aspeed_clk_data) 634 return; 635 636 /* 637 * This way all clocks fetched before the platform device probes, 638 * except those we assign here for early use, will be deferred. 639 */ 640 for (i = 0; i < ASPEED_NUM_CLKS; i++) --- 33 unchanged lines hidden --- | 633 if (!aspeed_clk_data) 634 return; 635 636 /* 637 * This way all clocks fetched before the platform device probes, 638 * except those we assign here for early use, will be deferred. 639 */ 640 for (i = 0; i < ASPEED_NUM_CLKS; i++) --- 33 unchanged lines hidden --- |