aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc/habanalabs/device.c
diff options
context:
space:
mode:
authorOded Gabbay <oded.gabbay@gmail.com>2019-06-04 15:07:11 +0300
committerOded Gabbay <oded.gabbay@gmail.com>2019-06-04 15:07:11 +0300
commit56e53806dc9eb9acdb914f59708ce1d815f3f86c (patch)
tree34eca124676833154b3b6e6c48caeda0e47eaa78 /drivers/misc/habanalabs/device.c
parent5c823ae188ebc3e12c9fe3cecf08136aa91c8ce9 (diff)
habanalabs: remove simulator dedicated code
This patch removes two code sections in the common code that contain code which is only relevant for simulator support (which is not upstreamed). This removal saves the need to update this code upstream, which is not needed anyway. Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/misc/habanalabs/device.c')
-rw-r--r--drivers/misc/habanalabs/device.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/misc/habanalabs/device.c b/drivers/misc/habanalabs/device.c
index 6937c1fcab63..cca4af29daf7 100644
--- a/drivers/misc/habanalabs/device.c
+++ b/drivers/misc/habanalabs/device.c
@@ -695,13 +695,6 @@ again:
hdev->hard_reset_pending = true;
- if (!hdev->pdev) {
- dev_err(hdev->dev,
- "Reset action is NOT supported in simulator\n");
- rc = -EINVAL;
- goto out_err;
- }
-
device_reset_work = kzalloc(sizeof(*device_reset_work),
GFP_ATOMIC);
if (!device_reset_work) {