spi/mpc83xx: fix NULL pdata dereference bug
authorKenth Eriksson <kenth.eriksson@transmode.com>
Fri, 30 Mar 2012 15:05:30 +0000 (17:05 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 11 May 2012 12:14:10 +0000 (13:14 +0100)
commit2b1d2ce2393718972e2d1df85ad1830a4dd26e88
tree36c2119a462b61fc0bfda2772c98c7cd115e8b2e
parent4cfa4199d07dfbb9ff3b0f84857a4c81c8b17cae
spi/mpc83xx: fix NULL pdata dereference bug

commit 5039a86973cd35bdb2f64d28ee12f13fe2bb5a4c upstream.

Commit 178db7d3, "spi: Fix device unregistration when unregistering
the bus master", changed device initialization to be children of the
bus master, not children of the bus masters parent device. The pdata
pointer used in fsl_spi_chipselect must updated to reflect the changed
initialization.

Signed-off-by: Kenth Eriksson <kenth.eriksson@transmode.com>
Acked-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/spi/spi-fsl-spi.c