From patchwork Tue Apr 16 23:49:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 10904267 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 621DD1850 for ; Tue, 16 Apr 2019 23:49:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D2042884F for ; Tue, 16 Apr 2019 23:49:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 411E128A11; Tue, 16 Apr 2019 23:49:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D70C289C6 for ; Tue, 16 Apr 2019 23:49:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730862AbfDPXtc (ORCPT ); Tue, 16 Apr 2019 19:49:32 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:44306 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730868AbfDPXtc (ORCPT ); Tue, 16 Apr 2019 19:49:32 -0400 Received: by mail-pf1-f194.google.com with SMTP id y13so11154448pfm.11 for ; Tue, 16 Apr 2019 16:49:31 -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=3M4/HoeJn7RNDbgaruRvsbC8Cdn0pROv2vGhlyKRaIE=; b=PODkFOlEUt3dQC718Q9k72NahTdCZ02gCKlLWaF6gFHblJG0tee819YGf7shJxIKR5 xeKAWOYVLlxqpo8qhC0Jn6W+lwqpY6Ow7ehhxxpLI2A0cIB79t4BrxNCypqZR4c1+hK8 zfHsIKIjRxOYNSm64WzLDzXuIGA9zDUNgNuPKoefk1hsFqnOhxoD5njPZr5y4RJIpXa2 54XQ1JtSF0EZEIGre4ExiwESA9ddUEJMvlTdIdpl8qkM7nzFqSlbmPFx4C8PlY0eEaPm NV4l1zALrL6rS9UxV281A8WCOev+fjPUIpMPwVqrYWq44YhkZBhElIxRPpTs84mTGYix terQ== 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=3M4/HoeJn7RNDbgaruRvsbC8Cdn0pROv2vGhlyKRaIE=; b=pzJNweSxRy8c8c1KzZ5MwRjSWHvnWnCp1YNHLW421/R9SBraqfTujgPyza2tvQBm0j bM7CcXy8aPSzHT8xULP2cK/cGpVMdZHkM/iOOFxg+kMzJToibE/xYvTja4QrCdURa91+ bxoAxGc224hYRvKRJCCbmMl6Xn7lQdE9Y0opOH9zratKICw4NXq1nePIiJSvoDLXGB0H haBG9hGq6nCy4aXPx0TxBwjAyFDkRAMBKJSFxcHmzo7VZ8MdhByjHGE+XIHOXjkJ3Uvb 1yaSa/lAkoPMLq2XA8Ue2u9VD4qGweZB4xuURke8V+EeedyR55i0b3xNbvRoKa5K8Mrn iMLA== X-Gm-Message-State: APjAAAWPpkn0qtz1PWSObZFDu0STwHTMNSLnDyQMwoB3bdopRVM4OXnE ddVqvWKiJjSsfjYq4YOX/QkSFw== X-Google-Smtp-Source: APXvYqyEdQpyvckB+opTG4clt2LM9TFIFAEKE52alZSqqWZjInDhwpQo2dl7VyuDp1bu3Rh3PJ4rxw== X-Received: by 2002:a62:6842:: with SMTP id d63mr87739354pfc.9.1555458570856; Tue, 16 Apr 2019 16:49:30 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id g10sm39427998pgq.54.2019.04.16.16.49.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Apr 2019 16:49:30 -0700 (PDT) From: Bjorn Andersson To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler Cc: Andy Gross , David Brown , linux-arm-msm@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH] iio: adc: qcom-spmi-adc5: Fix of-based module autoloading Date: Tue, 16 Apr 2019 16:49:27 -0700 Message-Id: <20190416234927.8888-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The of_device_id table needs to be registered as module alias in order for automatic module loading to pick the kernel module based on the DeviceTree compatible. So add MODULE_DEVICE_TABLE() to make this happen. Fixes: e13d757279bb ("iio: adc: Add QCOM SPMI PMIC5 ADC driver") Cc: stable@vger.kernel.org Signed-off-by: Bjorn Andersson --- drivers/iio/adc/qcom-spmi-adc5.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/adc/qcom-spmi-adc5.c b/drivers/iio/adc/qcom-spmi-adc5.c index 6a866cc187f7..21fdcde77883 100644 --- a/drivers/iio/adc/qcom-spmi-adc5.c +++ b/drivers/iio/adc/qcom-spmi-adc5.c @@ -664,6 +664,7 @@ static const struct of_device_id adc5_match_table[] = { }, { } }; +MODULE_DEVICE_TABLE(of, adc5_match_table); static int adc5_get_dt_data(struct adc5_chip *adc, struct device_node *node) {