From patchwork Thu Nov 6 04:55:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 40249 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 274C32404A for ; Thu, 6 Nov 2014 04:56:10 +0000 (UTC) Received: by mail-wg0-f71.google.com with SMTP id b13sf148626wgh.6 for ; Wed, 05 Nov 2014 20:56:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :mime-version:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=SmHymufudP52MzKtEzZk4ZDqzLPVdn81OiCGL3N8VlQ=; b=AuXGo9Zy2AewwZ566jp5jwGqJF6V5MtroiaJTKZoybpKc5gMkvk4R7JkYVCc6byI+x 8wDxTZipR21d5CFbIUo1qqekdPq8hV215OirKEU9H9JWTuxsxT7/iXsGCpOq+hlPEbtx 3mPlvLju7VXa/uitTPavdsLd3nAd6IP1zX8kJ2RLE5RV2lgbEVM2n/bdhAXllv6JUymu Navw44K+t2teG4HchkuJJ759QIpQqVtEbc9z4mYUY6tgZYVOTsuzuEXJss6aeaqyFY4k 8XMiBNie8ngNppa8cITuWxKdiDLW6DOpft3ZoObl5h5bX3cQevPy/sqg6sZuaHqkh8Hi obBg== X-Gm-Message-State: ALoCoQmOV/zA/MjrfWkgaVEEvdc9US1lqI5WCvtD8aX1Scz4AK6xXKN4y67NLfwuPyMaqnKk0v5x X-Received: by 10.152.6.4 with SMTP id w4mr3205law.7.1415249769419; Wed, 05 Nov 2014 20:56:09 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.193 with SMTP id l1ls32410laa.79.gmail; Wed, 05 Nov 2014 20:56:09 -0800 (PST) X-Received: by 10.152.6.228 with SMTP id e4mr1832888laa.71.1415249769080; Wed, 05 Nov 2014 20:56:09 -0800 (PST) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id x1si9586074lbw.43.2014.11.05.20.56.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Nov 2014 20:56:09 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by mail-la0-f43.google.com with SMTP id ge10so1953851lab.2 for ; Wed, 05 Nov 2014 20:56:09 -0800 (PST) X-Received: by 10.112.202.104 with SMTP id kh8mr2014232lbc.46.1415249768921; Wed, 05 Nov 2014 20:56:08 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp397446lbc; Wed, 5 Nov 2014 20:56:08 -0800 (PST) X-Received: by 10.66.218.202 with SMTP id pi10mr2098439pac.28.1415249767447; Wed, 05 Nov 2014 20:56:07 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id lg2si4856486pab.114.2014.11.05.20.56.06 for ; Wed, 05 Nov 2014 20:56:07 -0800 (PST) Received-SPF: none (google.com: linux-usb-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751532AbaKFEzy (ORCPT + 3 others); Wed, 5 Nov 2014 23:55:54 -0500 Received: from devils.ext.ti.com ([198.47.26.153]:42216 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751125AbaKFEzy (ORCPT ); Wed, 5 Nov 2014 23:55:54 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id sA64tR1X025941; Wed, 5 Nov 2014 22:55:27 -0600 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id sA64tR1F004749; Wed, 5 Nov 2014 22:55:27 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.174.1; Wed, 5 Nov 2014 22:55:27 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id sA64tQXD028638; Wed, 5 Nov 2014 22:55:27 -0600 From: Felipe Balbi To: , , CC: Linux USB Mailing List , Linux ARM Kernel Mailing List , Felipe Balbi Subject: [PATCH] usb: gadget: udc: pxa27x: fix build warning when !OF Date: Wed, 5 Nov 2014 22:55:59 -0600 Message-ID: <1415249759-6219-1-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.1.0.GIT MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , in case kernel is built without CONFIG_OF there will be a build warning (see below) due to of_match_ptr() being defined to NULL. Because of_match_ptr() is pretty pointless anyway, let's just remove it and fix the warning. drivers/usb/gadget/udc/pxa27x_udc.c:2403:28: warning: ‘udc_pxa_dt_ids’ defined but not used [-Wunused-variable] static struct of_device_id udc_pxa_dt_ids[] = { ^ Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/pxa27x_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/pxa27x_udc.c b/drivers/usb/gadget/udc/pxa27x_udc.c index 69e7b816..d1d8a9f 100644 --- a/drivers/usb/gadget/udc/pxa27x_udc.c +++ b/drivers/usb/gadget/udc/pxa27x_udc.c @@ -2590,7 +2590,7 @@ static struct platform_driver udc_driver = { .driver = { .name = "pxa27x-udc", .owner = THIS_MODULE, - .of_match_table = of_match_ptr(udc_pxa_dt_ids), + .of_match_table = udc_pxa_dt_ids, }, .probe = pxa_udc_probe, .remove = pxa_udc_remove,