OSDN Git Service

serial: max310x: Try to get crystal clock rate from property
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 17 May 2021 17:29:30 +0000 (20:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 May 2021 14:30:37 +0000 (16:30 +0200)
commitd4d6f03c4fb3a91dadfe147b47edd40e4d7e4d36
tree01171f46d8e7a6e57cf85b02d6df947c46c6332a
parent18ee37e1382a7c4840e753bc8e9ba5fd5dc663f5
serial: max310x: Try to get crystal clock rate from property

In some configurations, mainly ACPI-based, the clock frequency of the device
is supplied by very well established 'clock-frequency' property. Hence, try
to get it from the property at last if no other providers are available.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210517172930.83353-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/max310x.c