aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRavishankar karkala Mallikarjunayya <ravishankar.km@greenturtles.in>2011-12-12 00:19:32 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-12-13 19:33:38 -0500
commit7a647b9e4a583d514899b22c5e5fa3a849c8b2a0 (patch)
tree3693b041606cf154c8458fdac1ac2bd3618f585e
parent1e3a2875684bcc4af1e2f6597fdd502cc59e3593 (diff)
Staging: comedi: fix printk issue in das1800.c
This is a patch to the das1800.c file that fixes up a printk warning found by the checkpatch.pl tool. Converted printks to dev_dbg(). Signed-off-by: Ravishankar Karkala Mallikarjunayya <ravishankar.km@greenturtles.in> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/comedi/drivers/das1800.c27
1 files changed, 14 insertions, 13 deletions
diff --git a/drivers/staging/comedi/drivers/das1800.c b/drivers/staging/comedi/drivers/das1800.c
index 1ea97896b6bd..6ef3e8f9aa8f 100644
--- a/drivers/staging/comedi/drivers/das1800.c
+++ b/drivers/staging/comedi/drivers/das1800.c
@@ -835,8 +835,8 @@ static int das1800_probe(struct comedi_device *dev)
835 case 0x3: 835 case 0x3:
836 if (board == das1801st_da || board == das1802st_da || 836 if (board == das1801st_da || board == das1802st_da ||
837 board == das1701st_da || board == das1702st_da) { 837 board == das1701st_da || board == das1702st_da) {
838 printk(" Board model: %s\n", 838 dev_dbg(dev->hw_dev, "Board model: %s\n",
839 das1800_boards[board].name); 839 das1800_boards[board].name);
840 return board; 840 return board;
841 } 841 }
842 printk 842 printk
@@ -845,8 +845,8 @@ static int das1800_probe(struct comedi_device *dev)
845 break; 845 break;
846 case 0x4: 846 case 0x4:
847 if (board == das1802hr_da || board == das1702hr_da) { 847 if (board == das1802hr_da || board == das1702hr_da) {
848 printk(" Board model: %s\n", 848 dev_dbg(dev->hw_dev, "Board model: %s\n",
849 das1800_boards[board].name); 849 das1800_boards[board].name);
850 return board; 850 return board;
851 } 851 }
852 printk 852 printk
@@ -856,8 +856,8 @@ static int das1800_probe(struct comedi_device *dev)
856 case 0x5: 856 case 0x5:
857 if (board == das1801ao || board == das1802ao || 857 if (board == das1801ao || board == das1802ao ||
858 board == das1701ao || board == das1702ao) { 858 board == das1701ao || board == das1702ao) {
859 printk(" Board model: %s\n", 859 dev_dbg(dev->hw_dev, "Board model: %s\n",
860 das1800_boards[board].name); 860 das1800_boards[board].name);
861 return board; 861 return board;
862 } 862 }
863 printk 863 printk
@@ -866,18 +866,19 @@ static int das1800_probe(struct comedi_device *dev)
866 break; 866 break;
867 case 0x6: 867 case 0x6:
868 if (board == das1802hr || board == das1702hr) { 868 if (board == das1802hr || board == das1702hr) {
869 printk(" Board model: %s\n", 869 dev_dbg(dev->hw_dev, "Board model: %s\n",
870 das1800_boards[board].name); 870 das1800_boards[board].name);
871 return board; 871 return board;
872 } 872 }
873 printk(" Board model (probed, not recommended): das-1802hr\n"); 873 printk
874 (" Board model (probed, not recommended): das-1802hr\n");
874 return das1802hr; 875 return das1802hr;
875 break; 876 break;
876 case 0x7: 877 case 0x7:
877 if (board == das1801st || board == das1802st || 878 if (board == das1801st || board == das1802st ||
878 board == das1701st || board == das1702st) { 879 board == das1701st || board == das1702st) {
879 printk(" Board model: %s\n", 880 dev_dbg(dev->hw_dev, "Board model: %s\n",
880 das1800_boards[board].name); 881 das1800_boards[board].name);
881 return board; 882 return board;
882 } 883 }
883 printk 884 printk
@@ -886,8 +887,8 @@ static int das1800_probe(struct comedi_device *dev)
886 break; 887 break;
887 case 0x8: 888 case 0x8:
888 if (board == das1801hc || board == das1802hc) { 889 if (board == das1801hc || board == das1802hc) {
889 printk(" Board model: %s\n", 890 dev_dbg(dev->hw_dev, "Board model: %s\n",
890 das1800_boards[board].name); 891 das1800_boards[board].name);
891 return board; 892 return board;
892 } 893 }
893 printk 894 printk