[U-Boot] w1-eeprom: ds24xxx: fix data abort in ds24xxx_probe()

Tom Rini trini at konsulko.com
Fri Nov 2 20:29:45 UTC 2018


On Mon, Oct 22, 2018 at 06:31:07PM +0200, Martin Fuzzey wrote:

> Data abort was occurring when using "w1 bus" with a DS24B33 present.
> 
> The abort occurred in the ds24xxx_probe() because the struct w1_device
> pointer was NULL. This is because that structure  is allocated by
> the parent device uclass (by .per_child_platdata_auto_alloc_size)
> and thus the correct accessor is dev_get_parent_platdata() not
> dev_get_platdata()
> 
> Signed-off-by: Martin Fuzzey <martin.fuzzey at flowbird.group>
> Reviewed-by: Eugen Hristev <eugen.hristev at microchip.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181102/7e1f582b/attachment.sig>


More information about the U-Boot mailing list