gitlab.arm.com will be in the maintainance mode on Wednesday June 29th 01:00 - 10:00 (UTC+1). Repositories is read only during the maintainance.

Commit 11d7eaa7 authored by Qais Yousef's avatar Qais Yousef
Browse files

coresight: Fix compilation error



drivers/hwtracing/coresight/coresight-etm4x-core.c:2065:20: error: initialization of ‘int (*)(struct amba_device *)’ from incompatible pointer type ‘void (*)(struct amba_device *)’ [-Werror=incompatible-pointer-types]
 2065 |  .remove         = etm4_remove_amba,
      |                    ^~~~~~~~~~~~~~~~
drivers/hwtracing/coresight/coresight-etm4x-core.c:2065:20: note: (near initialization for ‘etm4x_amba_driver.remove’)
Signed-off-by: Qais Yousef's avatarQais Yousef <qais.yousef@arm.com>
Change-Id: I24cf72d9ddd827fcc1a2220c1884f40e4843c335
parent bfa13097
......@@ -2013,12 +2013,14 @@ static int __exit etm4_remove_dev(struct etmv4_drvdata *drvdata)
return 0;
}
static void __exit etm4_remove_amba(struct amba_device *adev)
static int __exit etm4_remove_amba(struct amba_device *adev)
{
struct etmv4_drvdata *drvdata = dev_get_drvdata(&adev->dev);
if (drvdata)
etm4_remove_dev(drvdata);
return 0;
}
static int __exit etm4_remove_platform_dev(struct platform_device *pdev)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment