From patchwork Mon Nov 23 08:58:40 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giuseppe CAVALLARO X-Patchwork-Id: 39038 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id 13619B6EF5 for ; Mon, 23 Nov 2009 19:59:05 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756035AbZKWI6x (ORCPT ); Mon, 23 Nov 2009 03:58:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756029AbZKWI6x (ORCPT ); Mon, 23 Nov 2009 03:58:53 -0500 Received: from eu1sys200aog116.obsmtp.com ([207.126.144.141]:37052 "EHLO eu1sys200aog116.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755874AbZKWI6x (ORCPT ); Mon, 23 Nov 2009 03:58:53 -0500 Received: from source ([164.129.1.35]) (using TLSv1) by eu1sys200aob116.postini.com ([207.126.147.11]) with SMTP ID DSNKSwpOz/kcO6rWt5xZFhnxmaUAREoes2MU@postini.com; Mon, 23 Nov 2009 08:58:59 UTC Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C6196131 for ; Mon, 23 Nov 2009 08:58:52 +0000 (GMT) Received: from mail3.ctn.st.com (mail3.ctn.st.com [164.130.116.150]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 8A6F897B for ; Mon, 23 Nov 2009 08:58:52 +0000 (GMT) Received: from localhost (mdt-dhcp10.ctn.st.com [10.52.139.10]) by mail3.ctn.st.com (MOS 3.8.7a) with ESMTP id CWM54581 (AUTH cavagiu); Mon, 23 Nov 2009 09:58:55 +0100 (CET) From: Giuseppe CAVALLARO To: netdev@vger.kernel.org Cc: Giuseppe Cavallaro Subject: [PATCH 1/2] stmmac: fixed a compilation error when use the external timer Date: Mon, 23 Nov 2009 09:58:40 +0100 Message-Id: <1258966721-6567-1-git-send-email-peppe.cavallaro@st.com> X-Mailer: git-send-email 1.6.0.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Signed-off-by: Giuseppe Cavallaro --- drivers/net/stmmac/stmmac_timer.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/stmmac/stmmac_timer.c b/drivers/net/stmmac/stmmac_timer.c index b838c65..679f61f 100644 --- a/drivers/net/stmmac/stmmac_timer.c +++ b/drivers/net/stmmac/stmmac_timer.c @@ -63,7 +63,7 @@ int stmmac_open_ext_timer(struct net_device *dev, struct stmmac_timer *tm) stmmac_rtc = rtc_class_open(CONFIG_RTC_HCTOSYS_DEVICE); if (stmmac_rtc == NULL) { - pr_error("open rtc device failed\n"); + pr_err("open rtc device failed\n"); return -ENODEV; } @@ -71,7 +71,7 @@ int stmmac_open_ext_timer(struct net_device *dev, struct stmmac_timer *tm) /* Periodic mode is not supported */ if ((rtc_irq_set_freq(stmmac_rtc, &stmmac_task, tm->freq) < 0)) { - pr_error("set periodic failed\n"); + pr_err("set periodic failed\n"); rtc_irq_unregister(stmmac_rtc, &stmmac_task); rtc_class_close(stmmac_rtc); return -1;