Thread (52 messages) 52 messages, 3 authors, 2021-04-15

Re: [PATCH v10 03/33] counter: 104-quad-8: Remove pointless comment

From: Syed Nayyar Waris <hidden>
Date: 2021-04-15 15:17:19
Also in: linux-iio, lkml

On Fri, Mar 19, 2021 at 08:00:22PM +0900, William Breathitt Gray wrote:
quoted hunk ↗ jump to hunk
It is obvious that devm_counter_register() is used to register a Counter
device, so a comment stating such is pointless here.

Cc: Syed Nayyar Waris <redacted>
Signed-off-by: William Breathitt Gray <redacted>
---
 drivers/counter/104-quad-8.c | 1 -
 1 file changed, 1 deletion(-)
diff --git a/drivers/counter/104-quad-8.c b/drivers/counter/104-quad-8.c
index 9691f8612be8..4bb9abffae48 100644
--- a/drivers/counter/104-quad-8.c
+++ b/drivers/counter/104-quad-8.c
@@ -1082,7 +1082,6 @@ static int quad8_probe(struct device *dev, unsigned int id)
 	/* Enable all counters */
 	outb(QUAD8_CHAN_OP_ENABLE_COUNTERS, base[id] + QUAD8_REG_CHAN_OP);
 
-	/* Register Counter device */
 	return devm_counter_register(dev, &priv->counter);
 }
 
-- 
2.30.2
Acked-by: Syed Nayyar Waris <redacted>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help