From patchwork Mon Nov 5 11:38:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Toshiaki Yamane X-Patchwork-Id: 1696461 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 7A5A53FCDE for ; Mon, 5 Nov 2012 11:38:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753693Ab2KELiT (ORCPT ); Mon, 5 Nov 2012 06:38:19 -0500 Received: from mail-pb0-f46.google.com ([209.85.160.46]:59221 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752642Ab2KELiS (ORCPT ); Mon, 5 Nov 2012 06:38:18 -0500 Received: by mail-pb0-f46.google.com with SMTP id rr4so3864859pbb.19 for ; Mon, 05 Nov 2012 03:38:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=Jw3+ZWT1heFJHkyLATNmxPQeqmcVOl0OPmrGjgH5xh8=; b=HrLsNxpCo+O73ork7XsNnlXiFJRBtL7eXXoN4R6urJ/ASdkwfExa7whDAdZZDlq8Kw /4H3A29FKgaP99hef06Ln0B/Pbcw/kJ89fOiida2fowNKy9F77+iTHd8aJr6NedAq33R 32pD9y+mevMMQmquW33lcqTaEh8sNfUoapvntcrh9WONLJd5mfuMMAPrtIZGGdm/9vP5 fi4/OraIprZBgOHx/ZRYOocj9fFYleyckiCayDugLQ4kS6J48K/lokHO1ou+QJtcF/YX xnRJXaONQ0MR7nzK56/2BMSPOQ5nnx1jLhVXWwl4HGQfZSTUm2ylTZzhhEWlBgA9VWVD /L0A== Received: by 10.66.86.102 with SMTP id o6mr27602609paz.11.1352115497658; Mon, 05 Nov 2012 03:38:17 -0800 (PST) Received: from localhost (softbank220057059032.bbtec.net. [220.57.59.32]) by mx.google.com with ESMTPS id vo8sm10456349pbc.16.2012.11.05.03.38.15 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 05 Nov 2012 03:38:16 -0800 (PST) From: YAMANE Toshiaki To: Greg Kroah-Hartman , linux-media@vger.kernel.org Cc: linux-kernel@vger.kernel.org, YAMANE Toshiaki Subject: [PATCH 2/2] staging/media: Use dev_ or pr_ printks in go7007/wis-saa7113.c Date: Mon, 5 Nov 2012 20:38:12 +0900 Message-Id: <1352115492-8252-1-git-send-email-yamanetoshi@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1352115408-8217-1-git-send-email-yamanetoshi@gmail.com> References: <1352115408-8217-1-git-send-email-yamanetoshi@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org fixed below checkpatch warnings. - WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ... - WARNING: Prefer netdev_dbg(netdev, ... then dev_dbg(dev, ... then pr_debug(... to printk(KERN_DEBUG ... Signed-off-by: YAMANE Toshiaki --- drivers/staging/media/go7007/wis-saa7113.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/media/go7007/wis-saa7113.c b/drivers/staging/media/go7007/wis-saa7113.c index 7f155cb..d7ce95f 100644 --- a/drivers/staging/media/go7007/wis-saa7113.c +++ b/drivers/staging/media/go7007/wis-saa7113.c @@ -281,12 +281,12 @@ static int wis_saa7113_probe(struct i2c_client *client, dec->hue = 0; i2c_set_clientdata(client, dec); - printk(KERN_DEBUG + dev_dbg(&client->dev, "wis-saa7113: initializing SAA7113 at address %d on %s\n", client->addr, adapter->name); if (write_regs(client, initial_registers) < 0) { - printk(KERN_ERR + dev_err(&client->dev, "wis-saa7113: error initializing SAA7113\n"); kfree(dec); return -ENODEV;