From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wes1-so1.wedos.net (wes1-so1.wedos.net [46.28.106.15]) by dpdk.org (Postfix) with ESMTP id 8CCC2ADAB for ; Fri, 8 Jul 2016 21:10:36 +0200 (CEST) Received: from pcviktorin.fit.vutbr.cz (pcviktorin.fit.vutbr.cz [147.229.13.147]) by wes1-so1.wedos.net (Postfix) with ESMTPSA id 3rmPG42ST4zCCH; Fri, 8 Jul 2016 21:10:36 +0200 (CEST) From: Jan Viktorin To: dev@dpdk.org Cc: Jan Viktorin , Shreyansh Jain , thomas.monjalon@6wind.com, David Marchand Date: Fri, 8 Jul 2016 21:09:36 +0200 Message-Id: <20160708190945.24225-7-viktorin@rehivetech.com> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160708190945.24225-1-viktorin@rehivetech.com> References: <20160708190945.24225-1-viktorin@rehivetech.com> Subject: [dpdk-dev] [PATCH v1 06/15] eal: remove PMD_REGISTER_DRIVER X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2016 19:10:36 -0000 All devices register themselfs by calling a kind of RTE_EAL_*_REGISTER. The PMD_REGISTER_DRIVER is not used anymore. Signed-off-by: Jan Viktorin --- lib/librte_eal/common/include/rte_dev.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/librte_eal/common/include/rte_dev.h b/lib/librte_eal/common/include/rte_dev.h index 63fc454..2fa85f7 100644 --- a/lib/librte_eal/common/include/rte_dev.h +++ b/lib/librte_eal/common/include/rte_dev.h @@ -191,16 +191,4 @@ int rte_eal_dev_attach(const char *name, const char *devargs); */ int rte_eal_dev_detach(const char *name); -#define PMD_REGISTER_DRIVER(d)\ -RTE_INIT(devinitfn_ ##d);\ -static void devinitfn_ ##d(void)\ -{\ - rte_eal_driver_register(&d);\ -} - - -#ifdef __cplusplus -} -#endif - #endif /* _RTE_VDEV_H_ */ -- 2.9.0