summaryrefslogtreecommitdiffstats
path: root/drivers/hwtracing/intel_th/core.c
diff options
context:
space:
mode:
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>2017-08-18 17:57:35 +0300
committerAlexander Shishkin <alexander.shishkin@linux.intel.com>2017-08-25 18:47:59 +0300
commit3321371b5d648479058fa6f9441168abbc1467c9 (patch)
treedf748323a68aa5b74d8daa0c31149511b73fc290 /drivers/hwtracing/intel_th/core.c
parentefb3669e14fe17d0ec4ecf57d0365039fe726f59 (diff)
downloadlinux-stable-3321371b5d648479058fa6f9441168abbc1467c9.tar.gz
linux-stable-3321371b5d648479058fa6f9441168abbc1467c9.tar.bz2
linux-stable-3321371b5d648479058fa6f9441168abbc1467c9.zip
intel_th: pci: Use drvdata for quirks
Allow attaching miscellaneous quirk information to devices as drvdata. Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Diffstat (limited to 'drivers/hwtracing/intel_th/core.c')
-rw-r--r--drivers/hwtracing/intel_th/core.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/hwtracing/intel_th/core.c b/drivers/hwtracing/intel_th/core.c
index d1760003b4a4..e915ab24f434 100644
--- a/drivers/hwtracing/intel_th/core.c
+++ b/drivers/hwtracing/intel_th/core.c
@@ -576,6 +576,7 @@ intel_th_subdevice_alloc(struct intel_th *th,
if (!thdev)
return ERR_PTR(-ENOMEM);
+ thdev->drvdata = th->drvdata;
memcpy(res, subdev->res,
sizeof(struct resource) * subdev->nres);
@@ -789,8 +790,8 @@ static const struct file_operations intel_th_output_fops = {
* @irq: irq number
*/
struct intel_th *
-intel_th_alloc(struct device *dev, struct resource *devres,
- unsigned int ndevres, int irq)
+intel_th_alloc(struct device *dev, struct intel_th_drvdata *drvdata,
+ struct resource *devres, unsigned int ndevres, int irq)
{
struct intel_th *th;
int err;
@@ -812,6 +813,7 @@ intel_th_alloc(struct device *dev, struct resource *devres,
goto err_ida;
}
th->dev = dev;
+ th->drvdata = drvdata;
th->resource = devres;
th->num_resources = ndevres;