diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-09-10 23:40:00 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-09-10 23:40:00 -0400 |
commit | ae46654bcff303b33facbbd04a3ad9c21d303f9b (patch) | |
tree | b0027d47d6c949162fa6ae306f34abeb76c559a9 /arch/arm/mach-tegra | |
parent | 7f1b9be13a7dbe8e51ea541bbcd6c47adae39c71 (diff) | |
parent | a48a7b6b54927159bac77735df00e5b9fc3415fb (diff) |
Merge tag 'armsoc-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC driver updates from Olof Johansson:
"This branch contains platform-related driver updates for ARM and ARM64.
Among them:
- Reset driver updates:
+ New API for dealing with arrays of resets
+ Make unimplemented {de,}assert return success on shared resets
+ MSDKv1 driver
+ Removal of obsolete Gemini reset driver
+ Misc updates for sunxi and Uniphier
- SoC drivers:
+ Platform SoC driver registration on Tegra
+ Shuffle of Qualcomm drivers into a submenu
+ Allwinner A64 support for SRAM
+ Renesas R-Car R3 support
+ Power domains for Rockchip RK3366
- Misc updates and smaller fixes for TEE and memory driver
subsystems"
* tag 'armsoc-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (54 commits)
firmware: arm_scpi: fix endianness of dev_id in struct dev_pstate_set
soc/tegra: fuse: Add missing semi-colon
soc/tegra: Restrict SoC device registration to Tegra
drivers: soc: sunxi: add support for A64 and its SRAM C
drivers: soc: sunxi: add support for remapping func value to reg value
drivers: soc: sunxi: fix error processing on base address when claiming
dt-bindings: add binding for Allwinner A64 SRAM controller and SRAM C
bus: sunxi-rsb: Enable by default for ARM64
soc/tegra: Register SoC device
firmware: tegra: set drvdata earlier
memory: Convert to using %pOF instead of full_name
soc: Convert to using %pOF instead of full_name
bus: Convert to using %pOF instead of full_name
firmware: Convert to using %pOF instead of full_name
soc: mediatek: add SCPSYS power domain driver for MediaTek MT7622 SoC
soc: mediatek: add header files required for MT7622 SCPSYS dt-binding
soc: mediatek: reduce code duplication of scpsys_probe across all SoCs
dt-bindings: soc: update the binding document for SCPSYS on MediaTek MT7622 SoC
reset: uniphier: add analog amplifiers reset control
reset: uniphier: add video input subsystem reset control
...
Diffstat (limited to 'arch/arm/mach-tegra')
-rw-r--r-- | arch/arm/mach-tegra/tegra.c | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/arch/arm/mach-tegra/tegra.c b/arch/arm/mach-tegra/tegra.c index 649e9e8c7bcc..02e712d2ea30 100644 --- a/arch/arm/mach-tegra/tegra.c +++ b/arch/arm/mach-tegra/tegra.c | |||
@@ -84,35 +84,8 @@ static void __init tegra_dt_init_irq(void) | |||
84 | 84 | ||
85 | static void __init tegra_dt_init(void) | 85 | static void __init tegra_dt_init(void) |
86 | { | 86 | { |
87 | struct soc_device_attribute *soc_dev_attr; | 87 | struct device *parent = tegra_soc_device_register(); |
88 | struct soc_device *soc_dev; | ||
89 | struct device *parent = NULL; | ||
90 | 88 | ||
91 | soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); | ||
92 | if (!soc_dev_attr) | ||
93 | goto out; | ||
94 | |||
95 | soc_dev_attr->family = kasprintf(GFP_KERNEL, "Tegra"); | ||
96 | soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%d", | ||
97 | tegra_sku_info.revision); | ||
98 | soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%u", tegra_get_chip_id()); | ||
99 | |||
100 | soc_dev = soc_device_register(soc_dev_attr); | ||
101 | if (IS_ERR(soc_dev)) { | ||
102 | kfree(soc_dev_attr->family); | ||
103 | kfree(soc_dev_attr->revision); | ||
104 | kfree(soc_dev_attr->soc_id); | ||
105 | kfree(soc_dev_attr); | ||
106 | goto out; | ||
107 | } | ||
108 | |||
109 | parent = soc_device_to_device(soc_dev); | ||
110 | |||
111 | /* | ||
112 | * Finished with the static registrations now; fill in the missing | ||
113 | * devices | ||
114 | */ | ||
115 | out: | ||
116 | of_platform_default_populate(NULL, NULL, parent); | 89 | of_platform_default_populate(NULL, NULL, parent); |
117 | } | 90 | } |
118 | 91 | ||