From patchwork Sat Nov 19 19:28:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sinan Kaya X-Patchwork-Id: 9438341 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 52A5560755 for ; Sat, 19 Nov 2016 19:28:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3CA7029212 for ; Sat, 19 Nov 2016 19:28:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 23C592921A; Sat, 19 Nov 2016 19:28:52 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham 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 A22792921A for ; Sat, 19 Nov 2016 19:28:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752933AbcKST2s (ORCPT ); Sat, 19 Nov 2016 14:28:48 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:45794 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752441AbcKST2r (ORCPT ); Sat, 19 Nov 2016 14:28:47 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id EDB8E614A5; Sat, 19 Nov 2016 19:28:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1479583726; bh=kXfIvUbX/cM8CKETzCsgTVI8R7b6EkWzHPjNHipdWM0=; h=From:To:Cc:Subject:Date:From; b=ENcBjWA/TKIEZiU4/34QxlF8tdcz5GtmrW4RZj2MV83kWWe+MUdJq/TlJ9NBaUGzi Spm3HdSq9x7jw4i7eSgoV4cvAtp3ESFXb7daKsgWUWvoAUhioZWaiQykySRDL+WG7Q Hj8OW3X62RTcTZI2XL70oUsW18JHwfu9cFI45/kI= Received: from drakthul.qualcomm.com (global_nat1_iad_fw.qualcomm.com [129.46.232.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: okaya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id BF0846147E; Sat, 19 Nov 2016 19:28:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1479583726; bh=kXfIvUbX/cM8CKETzCsgTVI8R7b6EkWzHPjNHipdWM0=; h=From:To:Cc:Subject:Date:From; b=ENcBjWA/TKIEZiU4/34QxlF8tdcz5GtmrW4RZj2MV83kWWe+MUdJq/TlJ9NBaUGzi Spm3HdSq9x7jw4i7eSgoV4cvAtp3ESFXb7daKsgWUWvoAUhioZWaiQykySRDL+WG7Q Hj8OW3X62RTcTZI2XL70oUsW18JHwfu9cFI45/kI= DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org BF0846147E Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=okaya@codeaurora.org From: Sinan Kaya To: dmaengine@vger.kernel.org, timur@codeaurora.org, cov@codeaurora.org Cc: linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sinan Kaya , linux-kernel@vger.kernel.org Subject: [PATCH] dmaengine: qcom_hidma: autoload while probing ACPI Date: Sat, 19 Nov 2016 14:28:37 -0500 Message-Id: <1479583718-2716-1-git-send-email-okaya@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP MODULE_DEVICE_TABLE is used by the kernel to determine which device driver should be loaded for which platform device. MODULE_DEVICE_TABLE has been only defined for the device-tree based platforms in the current code. Defining it also for ACPI based platforms. Signed-off-by: Sinan Kaya --- drivers/dma/qcom/hidma.c | 1 + drivers/dma/qcom/hidma_mgmt.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/dma/qcom/hidma.c b/drivers/dma/qcom/hidma.c index 248e74b..3c982c9 100644 --- a/drivers/dma/qcom/hidma.c +++ b/drivers/dma/qcom/hidma.c @@ -895,6 +895,7 @@ static int hidma_remove(struct platform_device *pdev) {"QCOM8062"}, {}, }; +MODULE_DEVICE_TABLE(acpi, hidma_acpi_ids); #endif static const struct of_device_id hidma_match[] = { diff --git a/drivers/dma/qcom/hidma_mgmt.c b/drivers/dma/qcom/hidma_mgmt.c index 985f5ac..f847d32 100644 --- a/drivers/dma/qcom/hidma_mgmt.c +++ b/drivers/dma/qcom/hidma_mgmt.c @@ -282,6 +282,7 @@ static int hidma_mgmt_probe(struct platform_device *pdev) {"QCOM8060"}, {}, }; +MODULE_DEVICE_TABLE(acpi, hidma_mgmt_acpi_ids); #endif static const struct of_device_id hidma_mgmt_match[] = {