From patchwork Wed Apr 24 11:45:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 162772 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp557456jan; Wed, 24 Apr 2019 04:46:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9n6h6t0KoL5iBmU+iE9EsWQKE10uKu7+aXL9l8spqXd6RsPLcevHOFoPWXwzLfw7gwohA X-Received: by 2002:a17:906:4ac1:: with SMTP id u1mr15612277ejt.179.1556106418037; Wed, 24 Apr 2019 04:46:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556106418; cv=none; d=google.com; s=arc-20160816; b=M3sH6nqmdmWIwDPBCxUhd8/NSpXE9KZV6ADJEo7aXxlzAADY6pfd/50RmXy9Eu6BPi UeZgZk8uCJbTKM7yMtSF/STsJMoHfPhqQPLmbSXORpZpjyHIRZs95LKv6HkoitOix73N +jwydgsohBpJfbxsxle3nR0hCYjf2H12QGibTszqTaC+wWlWcqOk4mM3exgnjom/Du/0 Tu4sOAdWuj0ejWneJZ3GuGIKYXFVUdxPzDu4T1JsZIlgEarRZSg5vJsUFWAD2FsHCvgL CtyLnLVTL04YF9ZsaHb/c+FnSlWyEKI3bXNxiKWlwN6RZuSjaK9e+6N4zALl2VWeMGxv uxNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:cc:to:from; bh=qGPPB4m6OhuViT/I2+DowKRxLDb8FbE78Ml9JzQCHks=; b=sLLg0H/OP7NsyvsgcAIGde4jDkQdk7PkzpO++GQ99ERU8cOy7QHo/Jrk1nLwGzi9Nb QwbHc2zpyec80S9IuxPPkJc7psq39RsRPowTy/0nHqTuKHw3tNU75S2nyQOqBvTzfVSl n/V4+g/dpk8Y3C3GheKpkdHbliGibWAKU9DlmBe80LNV3+ZHJrNluUHe2FwWM/ZrRM8H MlgGAQoqDSGwJagKXXzhCRThgLUX8eznTSqyv8jP9WM3tuZIwDjnGBF42MlLRUi+BRSN cW+LvfnJ+dr7SPIlJV2k7F2bAjvTlD3KhYWQHej550P6oNYdvbNbHO0dZDSC4dKdiu4m apUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id w8si1563123edc.369.2019.04.24.04.46.57; Wed, 24 Apr 2019 04:46:58 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 369511B535; Wed, 24 Apr 2019 13:46:42 +0200 (CEST) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by dpdk.org (Postfix) with ESMTP id 57A5A1B3B7 for ; Wed, 24 Apr 2019 13:46:33 +0200 (CEST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id E9B441A016B; Wed, 24 Apr 2019 13:46:32 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 85DF61A0050; Wed, 24 Apr 2019 13:46:31 +0200 (CEST) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 52C97402ED; Wed, 24 Apr 2019 19:46:29 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org Cc: shreyansh.jain@nxp.com Date: Wed, 24 Apr 2019 17:15:20 +0530 Message-Id: <20190424114520.23655-5-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190424114520.23655-1-hemant.agrawal@nxp.com> References: <20190424114520.23655-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH 5/5] raw/dpaa2_cmdif: remove driver name assignment X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" vdev driver names are not available in create if called from probe. Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c | 1 - drivers/raw/skeleton_rawdev/skeleton_rawdev.c | 1 - 2 files changed, 2 deletions(-) -- 2.17.1 diff --git a/drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c b/drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c index 7d311b2ee..0ed333850 100644 --- a/drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c +++ b/drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c @@ -207,7 +207,6 @@ dpaa2_cmdif_create(const char *name, rawdev->dev_ops = &dpaa2_cmdif_ops; rawdev->device = &vdev->device; - rawdev->driver_name = vdev->device.driver->name; /* For secondary processes, the primary has done all the work */ if (rte_eal_process_type() != RTE_PROC_PRIMARY) diff --git a/drivers/raw/skeleton_rawdev/skeleton_rawdev.c b/drivers/raw/skeleton_rawdev/skeleton_rawdev.c index d7630fc69..ccf08cc82 100644 --- a/drivers/raw/skeleton_rawdev/skeleton_rawdev.c +++ b/drivers/raw/skeleton_rawdev/skeleton_rawdev.c @@ -585,7 +585,6 @@ skeleton_rawdev_create(const char *name, rawdev->dev_ops = &skeleton_rawdev_ops; rawdev->device = &vdev->device; - rawdev->driver_name = vdev->device.driver->name; skeldev = skeleton_rawdev_get_priv(rawdev);