summaryrefslogtreecommitdiff
path: root/drivers/staging/comedi/drivers.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-06-12 18:57:27 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-12 21:40:51 (GMT)
commit8b9ba6e5efc3213f384cda155861a4f7ae903365 (patch)
tree922fa07e9881661040d2250d402710695d044ba0 /drivers/staging/comedi/drivers.c
parent0c16ae762990660c4dfd7515e3d46b4249f535f0 (diff)
downloadlinux-fsl-qoriq-8b9ba6e5efc3213f384cda155861a4f7ae903365.tar.xz
staging: comedi: change type of num_subdevices parameter to comedi_alloc_subdevices
The n_subdevices variable of struct comedi_device is an int type. Change the type of the comedi_alloc_subdevices 'num_subdevices' from an unsigned int to an int to match it. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbott@mev.co.uk> Cc: Frank Mori Hess <fmhess@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/drivers.c')
-rw-r--r--drivers/staging/comedi/drivers.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/comedi/drivers.c b/drivers/staging/comedi/drivers.c
index 5413647..979aa0e 100644
--- a/drivers/staging/comedi/drivers.c
+++ b/drivers/staging/comedi/drivers.c
@@ -56,10 +56,9 @@ static int poll_invalid(struct comedi_device *dev, struct comedi_subdevice *s);
struct comedi_driver *comedi_drivers;
-int comedi_alloc_subdevices(struct comedi_device *dev,
- unsigned int num_subdevices)
+int comedi_alloc_subdevices(struct comedi_device *dev, int num_subdevices)
{
- unsigned i;
+ int i;
dev->n_subdevices = num_subdevices;
dev->subdevices =