lkml.org 
[lkml]   [2022]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [Patch v6 1/4] memory: tegra: Add memory controller channels support
From
06.04.2022 08:24, Ashish Mhetre пишет:
> diff --git a/include/soc/tegra/mc.h b/include/soc/tegra/mc.h
> index 1066b1194a5a..c3c121fbfbb7 100644
> --- a/include/soc/tegra/mc.h
> +++ b/include/soc/tegra/mc.h
> @@ -13,6 +13,9 @@
> #include <linux/irq.h>
> #include <linux/reset-controller.h>
> #include <linux/types.h>
> +#include <linux/platform_device.h>
> +
> +#define MC_MAX_CHANNELS 16
>
> struct clk;
> struct device;
> @@ -181,6 +184,7 @@ struct tegra_mc_ops {
> int (*resume)(struct tegra_mc *mc);
> irqreturn_t (*handle_irq)(int irq, void *data);
> int (*probe_device)(struct tegra_mc *mc, struct device *dev);
> + int (*map_regs)(struct tegra_mc *mc, struct platform_device *pdev);

Use to_platform_device(mc->dev) instead of passing the pdev argument.

\
 
 \ /
  Last update: 2022-04-10 17:02    [W:0.093 / U:4.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site