From: Masahiro Yamada Date: Mon, 26 Jan 2015 10:57:06 +0900 Subject: [U-Boot] [PATCH v3 06/26] dm: core: Allocate platform data when binding a device In-Reply-To: <1422199640-25811-7-git-send-email-sjg@chromium.org> References: <1422199640-25811-1-git-send-email-sjg@chromium.org> <1422199640-25811-7-git-send-email-sjg@chromium.org> Message-ID: <20150126105705.5EA5.AA925319@jp.panasonic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, 25 Jan 2015 08:27:00 -0700 Simon Glass wrote: > When using allocated platform data, allocate it when we bind the device. > This makes it possible to fill in this information before the device is > probed. > > This fits with the platform data model (when not using device tree), > since platform data exists at bind-time. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Fix stale comment in device_probe_child() > > Changes in v2: None Reviewed-by: Masahiro Yamada