From patchwork Wed Dec 8 22:20:23 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: omar ramirez X-Patchwork-Id: 392352 X-Patchwork-Delegate: omar.ramirez@ti.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oB8MVI5P027829 for ; Wed, 8 Dec 2010 22:31:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753274Ab0LHWbR (ORCPT ); Wed, 8 Dec 2010 17:31:17 -0500 Received: from devils.ext.ti.com ([198.47.26.153]:35176 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752042Ab0LHWbR (ORCPT ); Wed, 8 Dec 2010 17:31:17 -0500 Received: from dlep36.itg.ti.com ([157.170.170.91]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id oB8MVFb6003808 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 8 Dec 2010 16:31:15 -0600 Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id oB8MVFDg011630; Wed, 8 Dec 2010 16:31:15 -0600 (CST) Received: from localhost (bacab.am.dhcp.ti.com [128.247.77.143]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id oB8MVFf23623; Wed, 8 Dec 2010 16:31:15 -0600 (CST) From: Omar Ramirez Luna To: linux-omap@vger.kernel.org Cc: Omar Ramirez Luna , Rene Sapiens , Ernesto Ramos , Felipe Contreras , Ionut Nicu Subject: [PATCH] staging: tidspbridge: use the right type for list_is_last Date: Wed, 8 Dec 2010 16:20:23 -0600 Message-Id: <1291846823-31513-1-git-send-email-omar.ramirez@ti.com> X-Mailer: git-send-email 1.7.1 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 08 Dec 2010 22:31:19 +0000 (UTC) diff --git a/drivers/staging/tidspbridge/rmgr/rmm.c b/drivers/staging/tidspbridge/rmgr/rmm.c index aae8657..5a3f09c 100644 --- a/drivers/staging/tidspbridge/rmgr/rmm.c +++ b/drivers/staging/tidspbridge/rmgr/rmm.c @@ -144,7 +144,7 @@ int rmm_alloc(struct rmm_target_obj *target, u32 segid, u32 size, new_sect->addr = addr; new_sect->size = size; new_sect->page = segid; - if (list_is_last(sect, &target->ovly_list)) + if (list_is_last(§->list_elem, &target->ovly_list)) /* Put new section at the end of the list */ list_add_tail(&new_sect->list_elem, &target->ovly_list);