From patchwork Wed Jun 14 15:11:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 105541 Delivered-To: patch@linaro.org Received: by 10.182.29.35 with SMTP id g3csp380373obh; Wed, 14 Jun 2017 08:11:47 -0700 (PDT) X-Received: by 10.84.231.15 with SMTP id f15mr615128plk.131.1497453107429; Wed, 14 Jun 2017 08:11:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497453107; cv=none; d=google.com; s=arc-20160816; b=niWVdMg5xIWEqPDHb/kPh2+D+16puA7oedKJAKW6aIevH/cKplcz9cyZwOkzQW2SeH FAPL/71AIGnl4gBmsxqdSCXSKUyDEMr7GDEpJZTPqTShziLeSEtSRA0F00mme/OcCyXm ryD+JNQaHpJcUsNyGM30HW+YBCayPRgDli7y/n6JVViHHIPMxEgpjjtcvRr2iDV8q8DE abb4ahEqqMA5ge1tJeevVyFmMKYfsfiWCWoXkrRKOMB+SwIqvgrrbJ9ng0LERNSTvqAB 4imfJhuRPp3PeIv4264vw/BqHOLlfDEbtNGXY3n9NuoIKx4AV/H24kOx9PhK4kSEbN89 cf+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=EFmJWmg0Py7KIQ9pYB+tnOcIdlYEvNwArVDWDuEiAV0=; b=Jwcbr0ZmfYDMlikq7AE772yIj0/QWq8ogVp0Gcd3dGymIZ7PblLlAMaRBqHZI9ROa8 PCHS3yYolhIhqKoKGg4uH2j9Ite5Y3Hy5Z07PRMcqshGgd8Z8+wkLmi8i55IaT7XLB8j HsZ7bK/ueTcdGDBzPCvH9ih+GhIxW7Li79epNtdFiwVr2OXE1hLXCCW/9HW8PyR44tYW xeXLrpyf01OkrFZrMdthUpaBaFflzW5Db1vDQhIYyK3nC6fV4tJLIA301Xpv887YqEnQ l/vsDqMkXv76uEnZUZYD8MCqDmQWoe112OOx5x14BuLT3MqhdeoiN4Bcblq97Y3MX99c 181Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=cKPkVTb+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m8si195248pli.538.2017.06.14.08.11.47; Wed, 14 Jun 2017 08:11:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.b=cKPkVTb+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750768AbdFNPLi (ORCPT + 25 others); Wed, 14 Jun 2017 11:11:38 -0400 Received: from mail-pf0-f182.google.com ([209.85.192.182]:33495 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751934AbdFNPLf (ORCPT ); Wed, 14 Jun 2017 11:11:35 -0400 Received: by mail-pf0-f182.google.com with SMTP id 83so1726621pfr.0 for ; Wed, 14 Jun 2017 08:11:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=EFmJWmg0Py7KIQ9pYB+tnOcIdlYEvNwArVDWDuEiAV0=; b=cKPkVTb+bZvNKIE3fbzdBEzObXXqD036l3pLGS8JjWWR0yAQYMWQhhBfElYvzIbpkR z1nlc8ZitvrQvki00qxRoHWzS8Zrcr6FDr2ncgd0AAnJFpCzGX5LEAx+ahqzyk3/krcK 0NwsKpUxH330esbm7L11B36XLlraIMnbDFQ24= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=EFmJWmg0Py7KIQ9pYB+tnOcIdlYEvNwArVDWDuEiAV0=; b=DaskwVOW+2TlTcbivZCt3cbs56WpuZNPpki/XLmj/VBYpDtHFWgmL4W8+39/FnNTPV zFwgWdzudg/NCWyvwg+aQJe7Mi+8OqL7PhS/BAwuytbqUTDov3ha2GwxLTkMzJIrny56 E3PnjPcsIcZ2Gdah4DmLRvWTKRRM6OwOkCEdGAClIXV/Wumw3UNJ1K10EBgAOfcy/XcL en9RLQ6g8Wh+6bv6p47cZNbhct+TaDkQ0orlpiIm16O2Fz1Fmcg9ZOhyHjRH6xHAwk31 8jMKPnEdRlIoslWTCRXFNmkeFXJmv2/Wi/AJC/hD+f03oqR9eDyxLL+eOgjqbimgDxvX pYUg== X-Gm-Message-State: AKS2vOwcUN5lUygl5nAwK9mAIXbQIKu1G4vocjbP7ym1Ed6s0a47R1PA TwFpLqqYyVste9o+ X-Received: by 10.84.238.131 with SMTP id v3mr643827plk.168.1497453089651; Wed, 14 Jun 2017 08:11:29 -0700 (PDT) Received: from localhost.localdomain ([45.56.159.99]) by smtp.gmail.com with ESMTPSA id c27sm488790pfj.107.2017.06.14.08.11.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Jun 2017 08:11:29 -0700 (PDT) From: Guodong Xu To: broonie@kernel.org, lgirdwood@gmail.com Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Guodong Xu Subject: [PATCH] regulator: hi6421v530: Describe consumed platform device Date: Wed, 14 Jun 2017 23:11:06 +0800 Message-Id: <20170614151106.11423-1-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The hi6421v530-regulator driver consumes a similarly named platform device. Adding that to the module device table, allows modprobe to locate this driver once the device is created. Signed-off-by: Guodong Xu --- drivers/regulator/hi6421v530-regulator.c | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.10.2 diff --git a/drivers/regulator/hi6421v530-regulator.c b/drivers/regulator/hi6421v530-regulator.c index 46bbba9..c09bc71 100644 --- a/drivers/regulator/hi6421v530-regulator.c +++ b/drivers/regulator/hi6421v530-regulator.c @@ -194,7 +194,14 @@ static int hi6421v530_regulator_probe(struct platform_device *pdev) return 0; } +static const struct platform_device_id hi6421v530_regulator_table[] = { + { .name = "hi6421v530-regulator" }, + {}, +}; +MODULE_DEVICE_TABLE(platform, hi6421v530_regulator_table); + static struct platform_driver hi6421v530_regulator_driver = { + .id_table = hi6421v530_regulator_table, .driver = { .name = "hi6421v530-regulator", },