platform/olpc: olpc-xo175-ec: switch to use spi_target_abort().
Switch to use modern name function spi_target_abort(). No functional changed. Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Acked-by: Hans de Goede <hdegoede@redhat.com> Link: https://patch.msgid.link/20240910022618.1397-7-yangyingliang@huaweicloud.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
be03763d24
commit
5b2e4d1515
@ -536,7 +536,7 @@ static int olpc_xo175_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *resp,
|
||||
dev_err(dev, "EC cmd error: timeout in STATE %d\n",
|
||||
priv->cmd_state);
|
||||
gpiod_set_value_cansleep(priv->gpio_cmd, 0);
|
||||
spi_slave_abort(priv->spi);
|
||||
spi_target_abort(priv->spi);
|
||||
olpc_xo175_ec_read_packet(priv);
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
@ -653,7 +653,7 @@ static void olpc_xo175_ec_remove(struct spi_device *spi)
|
||||
if (pm_power_off == olpc_xo175_ec_power_off)
|
||||
pm_power_off = NULL;
|
||||
|
||||
spi_slave_abort(spi);
|
||||
spi_target_abort(spi);
|
||||
|
||||
platform_device_unregister(olpc_ec);
|
||||
olpc_ec = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user