提交 b0d00f8b 编写于 作者: H Heikki Krogerus 提交者: Rafael J. Wysocki

ACPI / LPSS: drop clkdev_name member from lpss_device_desc

It was used to provide the correct con_id for the dma
driver, but it's not needed. Even if the driver requests a
clock with the con_id, it still gets the correct clock. The
device name is enough to match a single clock.
Signed-off-by: NHeikki Krogerus <heikki.krogerus@linux.intel.com>
Acked-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: NMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 ff8c1af5
......@@ -70,7 +70,6 @@ struct lpss_shared_clock {
struct lpss_private_data;
struct lpss_device_desc {
const char *clkdev_name;
unsigned int flags;
unsigned int prv_offset;
size_t prv_size_override;
......@@ -79,7 +78,6 @@ struct lpss_device_desc {
};
static struct lpss_device_desc lpss_dma_desc = {
.clkdev_name = "hclk",
.flags = LPSS_CLK,
};
......@@ -268,12 +266,7 @@ static int register_device_clock(struct acpi_device *adev,
clk_data = platform_get_drvdata(lpss_clk_dev);
if (!clk_data)
return -ENODEV;
if (dev_desc->clkdev_name) {
clk_register_clkdev(clk_data->clk, dev_desc->clkdev_name,
devname);
return 0;
}
clk = clk_data->clk;
if (!pdata->mmio_base
|| pdata->mmio_size < dev_desc->prv_offset + LPSS_CLK_SIZE)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册