07 Jul, 2016
1 commit
-
We have the following file --> Kconfig mapping:
sunxi/clk-factors.c obj-y
sunxi/clk-sun6i-apb0-gates.c CONFIG_MFD_SUN6I_PRCM (bool)
sunxi/clk-sun6i-apb0.c CONFIG_MFD_SUN6I_PRCM
sunxi/clk-sun6i-ar100.c CONFIG_MFD_SUN6I_PRCM
sunxi/clk-sun8i-apb0.c CONFIG_MFD_SUN6I_PRCM
sunxi/clk-sun9i-mmc.c obj-yHence none of these are being built as a module by anyone.
Lets remove the modular code that is essentially orphaned, so that
when reading the drivers there is no doubt they are builtin-only. All
drivers get mostly the same changes, so they are handled in batch.Changes are (1) convert to builtin_platform_register, (2) use the
init.h header, (3) delete the MODULE_LICENCE/MODULE_AUTHOR and
associated tags, and (4) delete any ".remove" functions.There was a stray module.h in a file not using any init.h or
module.h stuff, so we simply removed that one.In two cases, we explicitly disallow a driver unbind, since that
doesn't have a sensible use case anyway, and it allows us to drop
the ".remove" code for non-modular drivers.Since module_platform_driver() uses the same init level priority as
builtin_platform_driver() the init ordering remains unchanged with
this commit.We delete the MODULE_LICENSE etc. tags since all that information
is already contained at the top of each file in the comments.Acked-by: Boris Brezillon
Cc: Chen-Yu Tsai
Cc: "Emilio López"
Cc: Stephen Boyd
Acked-by: Maxime Ripard
Cc: linux-clk@vger.kernel.org
Signed-off-by: Paul Gortmaker
Signed-off-by: Michael Turquette
Link: lkml.kernel.org/r/20160704211220.5685-9-paul.gortmaker@windriver.com
12 Feb, 2016
1 commit
-
Now that our protection code doesn't use the global name lookup anymore, we
can remove the clkdev registrations.Signed-off-by: Maxime Ripard
17 Sep, 2015
1 commit
-
This platform driver has a OF device ID table but the OF module
alias information is not created so module autoloading won't work.Signed-off-by: Luis de Bethencourt
Signed-off-by: Stephen Boyd
26 Sep, 2014
1 commit
-
There is no need to init .owner field.
Based on the patch from Peter Griffin
"mmc: remove .owner field for drivers using module_platform_driver"This patch removes the superflous .owner field for drivers which
use the module_platform_driver API, as this is overriden in
platform_driver_register anyway."Signed-off-by: Kiran Padwal
Signed-off-by: Mike Turquette
29 Jul, 2014
1 commit
-
There are some structs and arrays on the driver that are not used
anywhere else. Let's mark them as static.Signed-off-by: Emilio López
Acked-by: Maxime Ripard
Signed-off-by: Mike Turquette
26 Jul, 2014
1 commit
-
…it/mripard/linux into clk-next-sunxi
Allwinner clocks additions for 3.17
This pull request adds support for the clocks found in the newly supported
Allwinner A23 clocks.
15 Jul, 2014
2 commits
-
This patch adds "allwinner,sun8i-a23-apb0-gates-clk", a A23 specific
compatible to the sun6i-a31-apb0-gates clock driver, along with the
gate bitmap.Signed-off-by: Chen-Yu Tsai
Signed-off-by: Maxime Ripard -
sun6i-apb0-gates uses the "clock-indices" DT property to indicate
valid gate bits or holes in between. However, the rest of sunxi
clock drivers use bitmaps for this purpose.This patch modifies sun6i-apb0-gates to use bitmaps as well, to be
consistent with the sunxi platform. Also add the missing call to
clk_register_clkdev, so system clock lookups will work.Signed-off-by: Chen-Yu Tsai
Signed-off-by: Maxime Ripard
07 Jul, 2014
1 commit
-
sun6i-a31-apb0-gates supports using clock-indices for holes between
individual gates. However, the driver passes the number of gates
registered in clk_data->clk_num, which of_clk_src_onecell_get uses
to recognize the range of valid indices a consumer can use.This patch makes the driver pass the maximum gate index + 1, so
of_clk_src_onecell_get does not complain about indices greater
than gates registered.This was tested on the A23 SoC, which has a similar APB0 clock,
but has holes for gates to removed IP blocks.Signed-off-by: Chen-Yu Tsai
Acked-by: Maxime Ripard
Signed-off-by: Maxime Ripard
02 Jul, 2014
1 commit
-
devm_ioremap_resource returns an ERR_PTR value, not NULL, on failure.
A simplified version of the semantic match that finds this problem is as
follows://
@@
expression e,e1;
statement S;
@@*e = devm_ioremap_resource(...);
if (!e1) S//
Signed-off-by: Himangi Saraogi
Acked-by: Julia Lawall
Acked-by Boris BREZILLON
Signed-off-by: Mike Turquette
11 Jun, 2014
1 commit
-
The PRCM (Power/Reset/Clock Management) unit provides several clock
devices:
- AR100 clk: used to clock the Power Management co-processor
- AHB0 clk: used to clock the AHB0 bus
- APB0 clk and gates: used to clk peripherals connected to the APB0 busAdd support for these clks in a separate driver so that they can be probed
as platform devices instead of registered during early init.
This is needed to be able to probe PRCM MFD subdevices.Signed-off-by: Boris BREZILLON
Acked-by: Maxime Ripard
Signed-off-by: Emilio López