Skip to content

Commit d5a4f7c

Browse files
author
CKI KWF Bot
committed
Merge: gpio: mlxbf3: use platform_get_irq_optional()
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10/-/merge_requests/1444 gpio: mlxbf3: use platform_get_irq_optional() JIRA: https://issues.redhat.com/browse/RHEL-103570 This merge request updates the BlueField-3 GPIO driver to prevent the error message "IRQ index 0 not found" from appearing in kernel log. The driver has been updated to use "platform_get_irq_optional()" to suppress any error logging. The testing is simple, and just involves loading the driver, executing 'dmesg', and checking for any errors. Signed-off-by: David Thompson <davithom@redhat.com> Approved-by: Brian Masney <bmasney@redhat.com> Approved-by: Charles Mirabile <cmirabil@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: CKI GitLab Kmaint Pipeline Bot <26919896-cki-kmaint-pipeline-bot@users.noreply.gitlab.com>
2 parents 49497b0 + 8187614 commit d5a4f7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio-mlxbf3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ static int mlxbf3_gpio_probe(struct platform_device *pdev)
227227
gc->owner = THIS_MODULE;
228228
gc->add_pin_ranges = mlxbf3_gpio_add_pin_ranges;
229229

230-
irq = platform_get_irq(pdev, 0);
230+
irq = platform_get_irq_optional(pdev, 0);
231231
if (irq >= 0) {
232232
girq = &gs->gc.irq;
233233
gpio_irq_chip_set_chip(girq, &gpio_mlxbf3_irqchip);

0 commit comments

Comments
 (0)