Skip to content

Commit

Permalink
staging/sbe-2t3e3: Use netdev_ printks in cpld.c
Browse files Browse the repository at this point in the history
fixed below checkpatch warning.
- WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(...  to printk(KERN_ERR ...

Signed-off-by: YAMANE Toshiaki <yamanetoshi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
YAMANE Toshiaki authored and Greg Kroah-Hartman committed Oct 19, 2012
1 parent 1bc7c1c commit ce833d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/sbe-2t3e3/cpld.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ void cpld_set_fractional_mode(struct channel *sc, u32 mode,
SBE_2T3E3_CPLD_VAL_FRACTIONAL_MODE_2);
break;
default:
printk(KERN_ERR "wrong mode in set_fractional_mode\n");
netdev_err(sc->dev, "wrong mode in set_fractional_mode\n");
return;
}

Expand Down

0 comments on commit ce833d3

Please sign in to comment.