From patchwork Thu Jun 8 22:08:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 103428 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp2649790qgd; Thu, 8 Jun 2017 15:10:30 -0700 (PDT) X-Received: by 10.98.106.131 with SMTP id f125mr4730389pfc.91.1496959830329; Thu, 08 Jun 2017 15:10:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496959830; cv=none; d=google.com; s=arc-20160816; b=wwfXCOAxv52emcuHY3Zyy3gc0FggjeTTV3gVNKpMRWLRhG/tK+m82qCZw/RrfCquKQ dNRXdrAQeIs+WhVDCPQQ8qtHSoPiZdkCK14X0TzFhrqf7TuC8CUyNeg0xEAgO4KZdx36 MsMVsqH0yBRqGUfedmh+Fe3uLenXV2ygh2B0YV+kTz8tqzFuA/BcvnPqytagiFORsF5e 7itoYAK6vpQAZqjF96//24QEJHYO6SBrgBDfgSCRM+n4RP39c8e336NwkY86m4YpRCod XaEu0qKb2mSLRuJNumAlZSTnRftuVPiyOH0W56oZAGLxO8yJEOL7QryD9IJdsf6mIpYR mbzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=kjgrmXKaLWMrpfDR0npeS2ATv9XdEFUEjlubKNlNIf8=; b=eWKnEWOaJl8BQZjJPS1qEtqxJpYD7fs8iItmhNZtfhAQA+UylsyGxEEK4xMf5h2Lr7 mFyWV/f7cIG+6Im6601gJWXFDEWILVwBq0IQig2xf6Ufsw2W/O2yZCJVJPbbx9GeZWNm sqeCef+wn3vSZKysfgN3pigxyqQay0NZEBKuXirtWq2a6huUjMkcZI58k0dH6a3cYfcD 0FJDwmmug/mEH9iSzytmByUWHJ9Qtx2ZYHH4ZdZBacRG4vCYkEg2RAW+vELDAkTdb0/0 r2lKYrs4o1Jw+uYhEpmNm4l7B5+e1eEKvSH1UUJzl8af0Gu1UeisF7xgXyqMW9Pr+EpP rhfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 f84si5251825pfk.318.2017.06.08.15.10.30; Thu, 08 Jun 2017 15:10:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751475AbdFHWKU (ORCPT + 7 others); Thu, 8 Jun 2017 18:10:20 -0400 Received: from mail-pg0-f50.google.com ([74.125.83.50]:33896 "EHLO mail-pg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751578AbdFHWKR (ORCPT ); Thu, 8 Jun 2017 18:10:17 -0400 Received: by mail-pg0-f50.google.com with SMTP id v18so20166963pgb.1 for ; Thu, 08 Jun 2017 15:10:17 -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:in-reply-to:references; bh=tLGh6gDeIY4optK5O6YmKmy5z2SNh5+vefXKpBnMZ3Q=; b=gyI1hqSN6pxDwlOb7m0fs8sub3gK6M1R6hcfsqZpHHGeRV8zRAq3wUIi9pnv6W0kVu 6IrEFT8QtcR+4xZEWLHYOSJeu/MN5kurJSkDtUvN7FDX83BS/+rGbwDXUxRxVcJ/OXpy mFX1FSqi8Vjld2Q1yQW0HmRGFjLYvZ6tDXfbA= 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:in-reply-to :references; bh=tLGh6gDeIY4optK5O6YmKmy5z2SNh5+vefXKpBnMZ3Q=; b=cgEmY4M4D2k8JGbuTGjD+Br5S3aqxaZFkghWU4gIRragI0AnObg0T61tz7EuJs8XXn GsIU3qWBs6ngdGERRV+hl7LQteBlW86bkl9/Uc9RGQMWh5NzUf+zhln0mqLap5AEEcbg VefSIAD+I/k9TNgtdUPTHtStdYkNIfjVeDdFagB6U9k7y6QVI/zotoZqGo4fmt4gIJS5 OHSaf965YRFlak6zFCkwqo3zscziTwATXlUuzy+0cFCh8fhE9n0VOvBLra8xQ7rl7hZa xcTqPlslKL/JpzXxJvj5le+Ys89G8jMlwOeKNRJ+jjj+yo0z6QR+K5qkUn9q4lHbRuZ1 hgWw== X-Gm-Message-State: AODbwcB5YtCTPrKHlQvqXs/M3h0bZA8kA4iaiZhOS1be3fevMb/OYS/3 r549KQd/L9uMwed9 X-Received: by 10.98.202.68 with SMTP id n65mr39647673pfg.158.1496959817044; Thu, 08 Jun 2017 15:10:17 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.87]) by smtp.gmail.com with ESMTPSA id r85sm11963639pfb.61.2017.06.08.15.10.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Jun 2017 15:10:16 -0700 (PDT) From: Guodong Xu To: lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, xuwei5@hisilicon.com, catalin.marinas@arm.com, will.deacon@arm.com, lgirdwood@gmail.com, broonie@kernel.org, khilman@baylibre.com, arnd@arndb.de, gregory.clement@free-electrons.com, horms+renesas@verge.net.au, olof@lixom.net, thomas.petazzoni@free-electrons.com, yamada.masahiro@socionext.com, riku.voipio@linaro.org, treding@nvidia.com, krzk@kernel.org, eric@anholt.net, damm+renesas@opensource.se, ard.biesheuvel@linaro.org, linus.walleij@linaro.org, geert+renesas@glider.be Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, hw.wangxiaoyin@hisilicon.com, Guodong Xu , Jeremy Linton Subject: [PATCH v6 6/8] regulator: hi6421: Describe consumed platform device Date: Fri, 9 Jun 2017 06:08:39 +0800 Message-Id: <20170608220841.26531-7-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170608220841.26531-1-guodong.xu@linaro.org> References: <20170608220841.26531-1-guodong.xu@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The hi6421-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. Cc: Jeremy Linton Cc: Mark Brown Signed-off-by: Guodong Xu Acked-by: Arnd Bergmann --- drivers/regulator/hi6421-regulator.c | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/regulator/hi6421-regulator.c b/drivers/regulator/hi6421-regulator.c index 62c5f54..259c3a8 100644 --- a/drivers/regulator/hi6421-regulator.c +++ b/drivers/regulator/hi6421-regulator.c @@ -621,7 +621,14 @@ static int hi6421_regulator_probe(struct platform_device *pdev) return 0; } +static const struct platform_device_id hi6421_regulator_table[] = { + { .name = "hi6421-regulator" }, + {}, +}; +MODULE_DEVICE_TABLE(platform, hi6421_regulator_table); + static struct platform_driver hi6421_regulator_driver = { + .id_table = hi6421_regulator_table, .driver = { .name = "hi6421-regulator", },