From: André Draszik Date: Mon, 7 Jul 2025 10:50:28 +0000 (+0100) Subject: usb: typec: tcpm/tcpci_maxim: drop CONFIG_OF X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=286d9e5abed003b4b27f9e601e6e2d6abb98294e;p=users%2Fjedix%2Flinux-maple.git usb: typec: tcpm/tcpci_maxim: drop CONFIG_OF The general recommendation is to not use of_match_ptr() or CONFIG_OF ifdef. Drop them. Signed-off-by: André Draszik Reviewed-by: Badhri Jagan Sridharan Link: https://lore.kernel.org/r/20250707-max77759-irq-wake-v1-2-d367f633e4bc@linaro.org Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/typec/tcpm/tcpci_maxim_core.c b/drivers/usb/typec/tcpm/tcpci_maxim_core.c index ff3604be79da7..43b0ec2d12ba6 100644 --- a/drivers/usb/typec/tcpm/tcpci_maxim_core.c +++ b/drivers/usb/typec/tcpm/tcpci_maxim_core.c @@ -563,18 +563,16 @@ static const struct i2c_device_id max_tcpci_id[] = { }; MODULE_DEVICE_TABLE(i2c, max_tcpci_id); -#ifdef CONFIG_OF static const struct of_device_id max_tcpci_of_match[] = { { .compatible = "maxim,max33359", }, {}, }; MODULE_DEVICE_TABLE(of, max_tcpci_of_match); -#endif static struct i2c_driver max_tcpci_i2c_driver = { .driver = { .name = "maxtcpc", - .of_match_table = of_match_ptr(max_tcpci_of_match), + .of_match_table = max_tcpci_of_match, .pm = &max_tcpci_pm_ops, }, .probe = max_tcpci_probe,