Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758651AbcJTJxF (ORCPT ); Thu, 20 Oct 2016 05:53:05 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:55168 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752401AbcJTJxD (ORCPT ); Thu, 20 Oct 2016 05:53:03 -0400 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Alexandre Belloni , Nicolas Ferre , linux-kernel@vger.kernel.org, =?utf-8?B?U3plbXrFkSBBbmRyw6Fz?= Subject: Re: [PATCH v2 3/6] ARM: at91: Add armv7m support Date: Thu, 20 Oct 2016 11:52:20 +0200 Message-ID: <5506721.HBUId2vnJb@wuerfel> User-Agent: KMail/5.1.3 (Linux/4.4.0-34-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <20161020094135.18221-4-alexandre.belloni@free-electrons.com> References: <20161020094135.18221-1-alexandre.belloni@free-electrons.com> <20161020094135.18221-4-alexandre.belloni@free-electrons.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:LWKAd522TsKfJ5PIqq1A//fw0G5Z7yk7JHdiwoSY1KG9reZARu8 DOvCHDygUgvp9ZcEIYTn61eBBXj3KJyAec6yWz6A8zFdgdPDHFCXgSSnP7cslLzbaykeOmm wKeVS+FmnxATamJvGI7uYpc2JanOLfsmwDukINVWVBOAaRTV5PzIaBzS3h7cm0qpmzd38QB Ah14iyAgECRDy9fuRVTjQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:I4WbtjAi8m4=:Tj4zZdEObwvNO6BPIvotOl rHdAUif2GVbd15KqUcml39PIkJNm9ZGvKwwiYVdbbyvDVBSLKYNdCNfb/k/JwodJAM4tYaVQk zPlmvvSwGpDHEqD63+Ijloa8uPNmEOgEUCyxk6kfBmmYVknSot79gu3fmDGFpRlzuZ+otbPG/ GK4iYXtT89R3txec0LtZFPFFGmSQWZnrSf0n8z96PAXId4ny7o7dyljhBEJqeU4ELxcgMA6k0 ui2NYFj7xAFkmVWJ0TbpYSIbu4ty/AO+6gV3r8nqiRCJcfpgm6diKCTzPwYPaY0fkut55J1nG X4Puy5pi3WRzZfPe+Fj6h/z5bnmZ7xy55DY0hF/HTFYdr9Q7JwVWkIQNVK2CNCFYnWE+yyvmz 29ZAhsCD4mytL0N4Y6E/O++Yeh2sIQ1wbdw4c8s4C7Z3p6cYh59qaLPJ05XFUD6KA3IFu7dkq 2+x3jt5KtBpeeookzxdY7+R7cAuDndvJ8QfQkrOHHdUmHF4zHpgQOC+2PGOwSRWbYyxg2EHit rKdXkfNbuzXqDCGeTOs9vnCOCXkJjuSqzfC4T32EE+HHWwcKG37hsBRDyJWlqKgCJjDDbbK+v T7ET6+dYE2trXVmIHM2eiuSbDmlQGiruOfrFBHw7GfiLhctLNODQOAPfRbqsQLa6vzwl8uE/V XqWTtfVKH9TrY9uUS4Sw/oejk7MOJXM4FAzWc2vxQYpslxD3jfJITYT4wI8rvIyVdWbT1iKJs MgCDO4OeGxaGYg9w Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 817 Lines: 24 On Thursday, October 20, 2016 11:41:32 AM CEST Alexandre Belloni wrote: > + > +static void __init samx7_dt_device_init(void) > +{ > + struct soc_device *soc; > + struct device *soc_dev = NULL; > + > + soc = at91_soc_init(samx7_socs); > + if (soc) > + soc_dev = soc_device_to_device(soc); > + > + of_platform_populate(NULL, of_default_bus_match_table, NULL, soc_dev); > +} This was initially the idea for the soc_device, but we've stopped using it as the parent for the on-chip devices a while ago. Just register the device for identification here, and use of_platform_default_populate with a NULL parent as most others do. We should also investigate whether we can convert the three other at91 variants to do the same without breaking expectations in user space. Arnd