Laurent Pinchart wrote:
IS_ENABLED(CONFIG_OF) can be evaluated at compile time, so it will allow the compiler to remove the code block completely when OF support is disabled. pdev->dev.of_node is a runtime-only check which would allow the same optimization.
Ok, thanks. I was thinking that there was more to it than just optimization, but I guess not.
-- Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation. -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html