Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753076Ab0LFOBl (ORCPT ); Mon, 6 Dec 2010 09:01:41 -0500 Received: from mail-fx0-f66.google.com ([209.85.161.66]:34779 "EHLO mail-fx0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752542Ab0LFOBk (ORCPT ); Mon, 6 Dec 2010 09:01:40 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer; b=a983n//XWCQvEV+YyMKtzQlnAXAB2ZTyjI2Uc80Tl5Cqa1luZF0IkxGi37pztEBpDR C0ZiW6TZdRrhAjGlJhAK6lVXqY5dbSI/2FsTO/5DKpSFQNTzQSDFRZJwKzGvMHjEG+ke 6M9jrfJZlys6SXGjpySHO6NqR6urLV0BV8PRs= From: Marek Belisko To: Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Marek Belisko Subject: [PATCH] arm: ecard: Fix compilation warning. Date: Mon, 6 Dec 2010 15:04:03 +0100 Message-Id: <1291644243-23540-1-git-send-email-marek.belisko@open-nandra.com> X-Mailer: git-send-email 1.7.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 949 Lines: 34 Fix following compilation warning: arch/arm/kernel/ecard.c:1066: warning: ignoring return value of 'device_register', declared with attribute warn_unused_result Signed-off-by: Marek Belisko --- arch/arm/kernel/ecard.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/kernel/ecard.c b/arch/arm/kernel/ecard.c index eed2f79..da882b1 100644 --- a/arch/arm/kernel/ecard.c +++ b/arch/arm/kernel/ecard.c @@ -1063,8 +1063,10 @@ ecard_probe(int slot, card_type_t type) *ecp = ec; slot_to_expcard[slot] = ec; - device_register(&ec->dev); - + rc = device_register(&ec->dev); + if (rc) + goto nodev; + return 0; nodev: -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/