Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3375487imm; Tue, 29 May 2018 06:16:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoZATYmPlWz1xrzRNN/bpfnoaec6JUK6JZh7l5ZPhoGBdKST8bHFMLWCUkAuFRrfWA5i3Pa X-Received: by 2002:a17:902:9a06:: with SMTP id v6-v6mr17504726plp.21.1527599782539; Tue, 29 May 2018 06:16:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527599782; cv=none; d=google.com; s=arc-20160816; b=c7GwQnhUoAPaP8shjWfx9LmXDOC8kkv1uVWPF+LGw5csx2v3xEFYpKhEXlunX3BWVb 6YGHbmLm+tjZKWWg6J2dxTPUNscaJdLfeksDgA+h2fq2dbbl0HSOXNxasrPe6JoyZ4LL iMeqeY7bxsu3ga8Y0cM4Kx6cqK3Q0rappvpDv60QsFZwkITyda+DTdDKCE1gvAk+J/9a UlidH3JUU7y2manLrS5MndVAVH2eUVjp7h7EsV16FtfFfj3+nqvAYkdK32hU/nm9ge1V wIR2H6aIr1QPZ4Yv/UQ4kT6fWvJ3Ep3cWOdcrKlLc0i7XytVfaeyzb6McA2EZRyjWLhJ Yj3w== 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=OfVMFKdMkXR1QCYnb1x2C1Tv16Sp/Z2dGDtH9op8Qfw=; b=uq6hdn8RxJM2P4mBCokKKqzDMvhb/YfrV9IncoNbOIO3ujfnxTG7y98pbPqnTsRaYu oh7ZJ3nkvaLw2wd3WBNHdjGt5ewZpVteAMMdLHgXzyMZDrqm17tCRYM+evTmLvf1jwl9 krqSAI6+9wAVQZJpVx7M8atRlEtL4KLgv5UlL44krBlTvwJrj8LvK7Ehnup4rXneIqPh v0sUd+NTGYlK2zLhSEgH/KPR4jg+2IEps8b+8jHWv3A8DUP5x1C6pKl0dPOC2atkTNOp bJOHcXWFWgNZnWu/IyalPd3gcl6rsi4n0igyRcOfXBAw9wyqAI7vc1FbId30F9UOZ+rp 2Lew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Sl1PZKEs; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6-v6si31105456plx.211.2018.05.29.06.16.08; Tue, 29 May 2018 06:16:22 -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=@gmail.com header.s=20161025 header.b=Sl1PZKEs; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934309AbeE2NNk (ORCPT + 99 others); Tue, 29 May 2018 09:13:40 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:32873 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934552AbeE2NK5 (ORCPT ); Tue, 29 May 2018 09:10:57 -0400 Received: by mail-wm0-f68.google.com with SMTP id x12-v6so47890122wmc.0; Tue, 29 May 2018 06:10:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OfVMFKdMkXR1QCYnb1x2C1Tv16Sp/Z2dGDtH9op8Qfw=; b=Sl1PZKEsm4rA0qA6obBvMfB5o+aCIFEl5WjTc+SYp9H8RUG3tpTZ5SdY3Ulc5GCyhH GGhKl/QHJ4dm1kMAaPAjSqdIo9b5fg+o5ruZhi3buIKIhWyeGCNaHgaSBH4PyVuYZnXd nCo7XPA6njJt9bLuz7OZQ/grlB/SLx+t9bIoZgYnZCMnoGnDavERlJrZA9jRTCc3/b4/ hufMptRBd45RrAOWXdEtEtp0kqx97Vn/S8NcLL+ye0vu94cQAtguQVYLM/92SZqiwPpA qxj0ajSmbF/2TCDQhjOOu7LLa+2VpaPQL8EexdyxwPvNNEepxngivCf0WkIE7ArpGOtQ iuxw== 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=OfVMFKdMkXR1QCYnb1x2C1Tv16Sp/Z2dGDtH9op8Qfw=; b=glF514RsgrmgDN7SmJqptuk2tDXn1Qa46n/9ud4yPUEJ6tGB70OQ2tYZpPw6X9CPjl qUZ7GIP0cDQcaepkPPWOmw3vaLpBvzoW3PNrQbFR0j2fozonne9fedXEyn4AZ4zHOG+B YlaWCGN9nHCsjR+dc3jPk4TYL3iNfOH3zMIEkwcT0wWQI+HaRAsQn+RRd5Dxm5v2mQ6/ ZBSfIqzt7HBcPeTXzDeFj628tAJI2bsFq51meA/Fc45oDILOGke737OTxtjlrbFfezxD 6dulfTwvoyzhqgEdwKIbIrff56yyRL4283vaT6zpuQD0J+zZJ5QeTQ2VMTqjlkaK04dk IKKw== X-Gm-Message-State: ALKqPweHsJjORoOBXl5B8HGRHDv22l7GVw0hSJA2Vl8Ovf1kTFAczOXz JnDbnQggzF4a20EvLAFNH7ZZb5sV X-Received: by 2002:a50:aca4:: with SMTP id x33-v6mr19442156edc.270.1527599455772; Tue, 29 May 2018 06:10:55 -0700 (PDT) Received: from neopili.qtec.com (cpe.xe-3-0-1-778.vbrnqe10.dk.customer.tdc.net. [80.197.57.18]) by smtp.gmail.com with ESMTPSA id c15-v6sm17443220edr.78.2018.05.29.06.10.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 May 2018 06:10:54 -0700 (PDT) From: Ricardo Ribalda Delgado To: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Cc: Ricardo Ribalda Delgado , Lino Sanfilippo , "David S . Miller" , Stefan Wahren , Rob Herring , Johan Hovold , netdev@vger.kernel.org Subject: [PATCH 15/19] net: qualcomm: MODULE_DEVICE_TABLE(serdev) Date: Tue, 29 May 2018 15:10:10 +0200 Message-Id: <20180529131014.18641-16-ricardo.ribalda@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180529131014.18641-1-ricardo.ribalda@gmail.com> References: <20180529131014.18641-1-ricardo.ribalda@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Export serdev table to the module header, allowing module autoload via udev/modprobe. Cc: Lino Sanfilippo Cc: David S. Miller Cc: Stefan Wahren Cc: Rob Herring Cc: Johan Hovold Cc: netdev@vger.kernel.org Signed-off-by: Ricardo Ribalda Delgado --- drivers/net/ethernet/qualcomm/qca_uart.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/ethernet/qualcomm/qca_uart.c b/drivers/net/ethernet/qualcomm/qca_uart.c index db6068cd7a1f..bb7aed805083 100644 --- a/drivers/net/ethernet/qualcomm/qca_uart.c +++ b/drivers/net/ethernet/qualcomm/qca_uart.c @@ -405,6 +405,12 @@ static void qca_uart_remove(struct serdev_device *serdev) free_netdev(qca->net_dev); } +static struct serdev_device_id qca_uart_serdev_id[] = { + { QCAUART_DRV_NAME, }, + {}, +}; +MODULE_DEVICE_TABLE(serdev, qca_uart_serdev_id); + static struct serdev_device_driver qca_uart_driver = { .probe = qca_uart_probe, .remove = qca_uart_remove, @@ -412,6 +418,7 @@ static struct serdev_device_driver qca_uart_driver = { .name = QCAUART_DRV_NAME, .of_match_table = of_match_ptr(qca_uart_of_match), }, + .id_table = qca_uart_serdev_id, }; module_serdev_device_driver(qca_uart_driver); -- 2.17.0