summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2015-10-27 19:08:19 -0400
committerTom Rini <trini@konsulko.com>2015-10-27 19:08:19 -0400
commit2431492aef1de33bd222c97ecc131a338d9c454e (patch)
tree4e57720bbefe998dbafcce6a1fb015baa936a73e /drivers/misc
parentc139b5ff0999ec3d44a02ebdb623a92e5782e53e (diff)
parent4ea5243a3a2fbc59bbcdd401d75f1744bcd6280f (diff)
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/cros_ec_spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/cros_ec_spi.c b/drivers/misc/cros_ec_spi.c
index 0686925aaf..253d91a553 100644
--- a/drivers/misc/cros_ec_spi.c
+++ b/drivers/misc/cros_ec_spi.c
@@ -24,7 +24,7 @@ DECLARE_GLOBAL_DATA_PTR;
int cros_ec_spi_packet(struct udevice *udev, int out_bytes, int in_bytes)
{
struct cros_ec_dev *dev = dev_get_uclass_priv(udev);
- struct spi_slave *slave = dev_get_parentdata(dev->dev);
+ struct spi_slave *slave = dev_get_parent_priv(dev->dev);
ulong start;
uint8_t byte;
int rv;
@@ -84,7 +84,7 @@ int cros_ec_spi_command(struct udevice *udev, uint8_t cmd, int cmd_version,
uint8_t **dinp, int din_len)
{
struct cros_ec_dev *dev = dev_get_uclass_priv(udev);
- struct spi_slave *slave = dev_get_parentdata(dev->dev);
+ struct spi_slave *slave = dev_get_parent_priv(dev->dev);
int in_bytes = din_len + 4; /* status, length, checksum, trailer */
uint8_t *out;
uint8_t *p;