summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2019-08-22 18:40:18 +0200
committerOleksandr Suvorov <oleksandr.suvorov@toradex.com>2021-01-27 20:36:30 +0200
commit16c0c679fe91efbe872927147fd45fdfafb8defb (patch)
tree0994ccd3527e62fb249260b804f667e64ee17b70 /drivers
parent359de8961e68f3e80b67a5658e471eaf16086b88 (diff)
can: mcp25xxfd: mcp25xxfd_can_queue_frame: always increment the submit_queue_count
otherwise with switched off DEBUGFS support the driver will not work anymore. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> (cherry picked from commit 3d566db75ce8a954c0a4ad67b23d9069e7851175) (cherry picked from commit 4f0a5324eaa82c33e88165d99bc793b0a3d29b2b)
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can.h b/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can.h
index b480220d4ccd..aedaa0f68f58 100644
--- a/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can.h
+++ b/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can.h
@@ -31,7 +31,7 @@ void mcp25xxfd_can_queue_frame(struct mcp25xxfd_can_priv *cpriv,
cpriv->fifos.submit_queue[idx].ts = ts;
cpriv->fifos.submit_queue[idx].is_rx = is_rx;
- MCP25XXFD_DEBUGFS_INCR(cpriv->fifos.submit_queue_count);
+ cpriv->fifos.submit_queue_count++;
}
/* get the current controller mode */