diff options
author | J. German Rivera <German.Rivera@freescale.com> | 2015-10-17 16:18:23 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-18 03:53:38 (GMT) |
commit | a17f4aa62724732b4c3922d5a3a8d22b19ed2901 (patch) | |
tree | 5f0080ddbc79811123c97302cbc73921d7c3d62c /drivers/staging/fsl-mc/bus/mc-bus.c | |
parent | 2379bdbc6c37ad9db6538dbe8f56f18968b566ad (diff) | |
download | linux-a17f4aa62724732b4c3922d5a3a8d22b19ed2901.tar.xz |
staging: fsl-mc: fixed bug in uninitialized root dprc irq count
When initializing the object attributes for the root dprc, the
irq_count was uninitialized. Initialize it to 1.
Signed-off-by: J. German Rivera <German.Rivera@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fsl-mc/bus/mc-bus.c')
-rw-r--r-- | drivers/staging/fsl-mc/bus/mc-bus.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/fsl-mc/bus/mc-bus.c b/drivers/staging/fsl-mc/bus/mc-bus.c index fd13053..4ac3d07 100644 --- a/drivers/staging/fsl-mc/bus/mc-bus.c +++ b/drivers/staging/fsl-mc/bus/mc-bus.c @@ -749,6 +749,7 @@ static int fsl_mc_bus_probe(struct platform_device *pdev) obj_desc.id = container_id; obj_desc.ver_major = DPRC_VER_MAJOR; obj_desc.ver_minor = DPRC_VER_MINOR; + obj_desc.irq_count = 1; obj_desc.region_count = 0; error = fsl_mc_device_add(&obj_desc, mc_io, &pdev->dev, &mc_bus_dev); |