aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/vme/devices/vme_user.c
diff options
context:
space:
mode:
authorManohar Vanga <manohar.vanga@cern.ch>2011-09-26 05:27:18 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-10-17 18:43:13 -0400
commit0a4b6b0279d903df2d62aaf92edf360fb5312532 (patch)
tree090bc748ac53da8e8edb160ba1b48c5051af70dd /drivers/staging/vme/devices/vme_user.c
parenta916a391d3e19593a104a8c3c4779a3084f1ca5b (diff)
staging: vme_user: rename USER_BUS_MAX to VME_USER_BUS_MAX
Signed-off-by: Manohar Vanga <manohar.vanga@cern.ch> Cc: Martyn Welch <martyn.welch@ge.com> Reviewed-by: Emilio G. Cota <cota@braap.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/vme/devices/vme_user.c')
-rw-r--r--drivers/staging/vme/devices/vme_user.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c
index 9518dda13ea..7dcd1622b5f 100644
--- a/drivers/staging/vme/devices/vme_user.c
+++ b/drivers/staging/vme/devices/vme_user.c
@@ -43,7 +43,7 @@
43static DEFINE_MUTEX(vme_user_mutex); 43static DEFINE_MUTEX(vme_user_mutex);
44static const char driver_name[] = "vme_user"; 44static const char driver_name[] = "vme_user";
45 45
46static int bus[USER_BUS_MAX]; 46static int bus[VME_USER_BUS_MAX];
47static unsigned int bus_num; 47static unsigned int bus_num;
48 48
49/* Currently Documentation/devices.txt defines the following for VME: 49/* Currently Documentation/devices.txt defines the following for VME:
@@ -643,10 +643,10 @@ static int __init vme_user_init(void)
643 /* Let's start by supporting one bus, we can support more than one 643 /* Let's start by supporting one bus, we can support more than one
644 * in future revisions if that ever becomes necessary. 644 * in future revisions if that ever becomes necessary.
645 */ 645 */
646 if (bus_num > USER_BUS_MAX) { 646 if (bus_num > VME_USER_BUS_MAX) {
647 printk(KERN_ERR "%s: Driver only able to handle %d buses\n", 647 printk(KERN_ERR "%s: Driver only able to handle %d buses\n",
648 driver_name, USER_BUS_MAX); 648 driver_name, VME_USER_BUS_MAX);
649 bus_num = USER_BUS_MAX; 649 bus_num = VME_USER_BUS_MAX;
650 } 650 }
651 651
652 /* 652 /*
@@ -668,7 +668,7 @@ err_nocard:
668 668
669static int vme_user_match(struct vme_dev *vdev) 669static int vme_user_match(struct vme_dev *vdev)
670{ 670{
671 if (vdev->num >= USER_BUS_MAX) 671 if (vdev->num >= VME_USER_BUS_MAX)
672 return 0; 672 return 0;
673 return 1; 673 return 1;
674} 674}