spi/mpc83xx: fix NULL pdata dereference bug
authorKenth Eriksson <kenth.eriksson@transmode.com>
Fri, 30 Mar 2012 15:05:30 +0000 (17:05 +0200)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 30 Mar 2012 22:46:22 +0000 (16:46 -0600)
commit5039a86973cd35bdb2f64d28ee12f13fe2bb5a4c
treeb9d5129472c5585bc44d0921fdaeead725540293
parent9232b9b1b57dc5c01f435433e70e26c122bf4e44
spi/mpc83xx: fix NULL pdata dereference bug

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>
drivers/spi/spi-fsl-spi.c