From patchwork Thu May 7 07:34:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 469320 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 46E8314027C for ; Thu, 7 May 2015 17:34:44 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750981AbbEGHen (ORCPT ); Thu, 7 May 2015 03:34:43 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:36759 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750845AbbEGHem (ORCPT ); Thu, 7 May 2015 03:34:42 -0400 Received: by pabsx10 with SMTP id sx10so32829661pab.3 for ; Thu, 07 May 2015 00:34:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:content-type :mime-version:content-transfer-encoding; bh=aTOyjn9HUcCA8rlQhwa6cKwOaDh+sPr1RR8KljGzErA=; b=hdvj7gAzfQ8UpDZ/6pPkT9EBo2uBonvfgw0+NAG+EvGJFzLPK5glzY556Q9GTyLDVA kqelUDcljBSes1d1M3sTxdtyhrAO4P2EY74okM8H/dEqq89sAjrxUoSCxOMARMCGlZj9 ZJBHAVTpHd08qtSQ5Ni3/5GQ7jaFyPgU8wiyttk9UidS0AaRRRFBbrzYVPezpEI594x3 4hKgWTER+DWC2JdxgneOfikGL8+IJavD209OIpvV/5W05ocwSbpPIoD9EF06G4iP0oht BDGfxkxw5L6H6P2ro4d1/3mdS80GKcMvuQyKX0AL/pJSSq4Wo65oFbvbVR70zCblwqA0 aEVw== X-Gm-Message-State: ALoCoQkEVgaJ9lt2HU7v1XcCE23RV9ZLa4ElnzGdhXwXYnmm7/4Wr/Z1ZPmkfviFilnITVTY4hTD X-Received: by 10.66.160.71 with SMTP id xi7mr4570753pab.19.1430984082216; Thu, 07 May 2015 00:34:42 -0700 (PDT) Received: from phoenix.local (36-239-237-184.dynamic-ip.hinet.net. [36.239.237.184]) by mx.google.com with ESMTPSA id vl9sm1159555pbc.73.2015.05.07.00.34.39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 May 2015 00:34:41 -0700 (PDT) Message-ID: <1430984077.23118.1.camel@ingics.com> Subject: [PATCH] gpio: xlp: Add missing .owner and .label settings for gpio_chip From: Axel Lin To: Linus Walleij Cc: Kamlakant Patel , Alexandre Courbot , "linux-gpio@vger.kernel.org" Date: Thu, 07 May 2015 15:34:37 +0800 X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Signed-off-by: Axel Lin --- drivers/gpio/gpio-xlp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpio/gpio-xlp.c b/drivers/gpio/gpio-xlp.c index 8532697..9bdab72 100644 --- a/drivers/gpio/gpio-xlp.c +++ b/drivers/gpio/gpio-xlp.c @@ -366,6 +366,8 @@ static int xlp_gpio_probe(struct platform_device *pdev) gc = &priv->chip; + gc->owner = THIS_MODULE; + gc->label = dev_name(&pdev->dev); gc->base = 0; gc->dev = &pdev->dev; gc->ngpio = ngpio;