mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
fsi: sbefifo: Don't check status during probe
The status check during probe doesn't serve any purpose. Any attempt to use the SBEFIFO will result in the same check and cleanup. Signed-off-by: Eddie James <eajames@linux.ibm.com> Link: https://lore.kernel.org/r/20230612195657.245125-5-eajames@linux.ibm.com Signed-off-by: Joel Stanley <joel@jms.id.au>
This commit is contained in:
parent
c21d322e1a
commit
d6ce872e2e
1 changed files with 0 additions and 8 deletions
|
@ -1027,14 +1027,6 @@ static int sbefifo_probe(struct device *dev)
|
||||||
mutex_init(&sbefifo->lock);
|
mutex_init(&sbefifo->lock);
|
||||||
sbefifo->timeout_start_rsp_ms = SBEFIFO_TIMEOUT_START_RSP;
|
sbefifo->timeout_start_rsp_ms = SBEFIFO_TIMEOUT_START_RSP;
|
||||||
|
|
||||||
/*
|
|
||||||
* Try cleaning up the FIFO. If this fails, we still register the
|
|
||||||
* driver and will try cleaning things up again on the next access.
|
|
||||||
*/
|
|
||||||
rc = sbefifo_cleanup_hw(sbefifo);
|
|
||||||
if (rc && rc != -ESHUTDOWN)
|
|
||||||
dev_err(dev, "Initial HW cleanup failed, will retry later\n");
|
|
||||||
|
|
||||||
/* Create chardev for userspace access */
|
/* Create chardev for userspace access */
|
||||||
sbefifo->dev.type = &fsi_cdev_type;
|
sbefifo->dev.type = &fsi_cdev_type;
|
||||||
sbefifo->dev.parent = dev;
|
sbefifo->dev.parent = dev;
|
||||||
|
|
Loading…
Reference in a new issue