From patchwork Thu Oct 21 08:00:40 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 68534 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 7E05AB7100 for ; Thu, 21 Oct 2010 19:10:14 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751701Ab0JUIKM (ORCPT ); Thu, 21 Oct 2010 04:10:12 -0400 Received: from smtp.gentoo.org ([140.211.166.183]:42211 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751302Ab0JUIKM (ORCPT ); Thu, 21 Oct 2010 04:10:12 -0400 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 4FABD1BC10A; Thu, 21 Oct 2010 08:01:00 +0000 (UTC) From: Mike Frysinger To: linux-ide@vger.kernel.org, Jeff Garzik Cc: uclinux-dist-devel@blackfin.uclinux.org Subject: [PATCH] pata_bf54x: fix return type of bfin_set_devctl Date: Thu, 21 Oct 2010 04:00:40 -0400 Message-Id: <1287648040-19759-1-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 1.7.3.1 Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org The new devctl func added for us to the driver has the wrong return type. Which is to say there shouldn't be any. This fixes compile time warnings as there shouldn't be any runtime difference. Signed-off-by: Mike Frysinger --- drivers/ata/pata_bf54x.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/ata/pata_bf54x.c b/drivers/ata/pata_bf54x.c index 9cae65d..5eeb922 100644 --- a/drivers/ata/pata_bf54x.c +++ b/drivers/ata/pata_bf54x.c @@ -826,7 +826,7 @@ static void bfin_dev_select(struct ata_port *ap, unsigned int device) * @ctl: value to write */ -static u8 bfin_set_devctl(struct ata_port *ap, u8 ctl) +static void bfin_set_devctl(struct ata_port *ap, u8 ctl) { void __iomem *base = (void __iomem *)ap->ioaddr.ctl_addr; write_atapi_register(base, ATA_REG_CTRL, ctl);