From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS, T_DKIMWL_WL_HIGH,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07B4EC04AB1 for ; Thu, 9 May 2019 18:58:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D64E82177E for ; Thu, 9 May 2019 18:58:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557428313; bh=zxR1iS372/HBPbflDvjoOuYk9gDbDXGjCZR08oSYC7s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=WE6eiDNYsIB+5xadsoxR3AhtE+dlKcilzBTgYUlybe1hSL7oobmIY46GdOG61ybak DS/Ms+pLDZP10q5m6qqHKqOjciqy8P0r1DSfGTxy7sDyrOcRHmhyGmV+mid5kMw3xo TRmbVHiwv9LeEeA1AHWplSPv/qO5Q8YRtaKZoi4M= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728821AbfEISxH (ORCPT ); Thu, 9 May 2019 14:53:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:47514 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728819AbfEISxH (ORCPT ); Thu, 9 May 2019 14:53:07 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 354802177E; Thu, 9 May 2019 18:53:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557427986; bh=zxR1iS372/HBPbflDvjoOuYk9gDbDXGjCZR08oSYC7s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QwpQNjYzT4gp2fkE6On+A/qKg8epp4W2lhDu5jbvYqMIFO8gM5iAng198ld8uY90q O+xZQtEL/yBhh9PbKF72xZzNs6VC3tX5ZetNHiJcQgf9tbNAaFvlylUVeeorcnSOJv 5iApZfi5iGuDbutLQ5ZdjzPFiJ/iz6q6oYCASoFs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bjorn Andersson , Jonathan Cameron Subject: [PATCH 5.0 80/95] iio: adc: qcom-spmi-adc5: Fix of-based module autoloading Date: Thu, 9 May 2019 20:42:37 +0200 Message-Id: <20190509181314.914061989@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190509181309.180685671@linuxfoundation.org> References: <20190509181309.180685671@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Bjorn Andersson commit 447ccb4e0834a9f9f0dd5643e421c7f1a1649e6a upstream. 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 Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/iio/adc/qcom-spmi-adc5.c | 1 + 1 file changed, 1 insertion(+) --- 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_ma }, { } }; +MODULE_DEVICE_TABLE(of, adc5_match_table); static int adc5_get_dt_data(struct adc5_chip *adc, struct device_node *node) {