summaryrefslogtreecommitdiffstats
path: root/drivers/misc/habanalabs/sysfs.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/sysfs.c
parent5c823ae188ebc3e12c9fe3cecf08136aa91c8ce9 (diff)
downloadlinux-stable-56e53806dc9eb9acdb914f59708ce1d815f3f86c.tar.gz
linux-stable-56e53806dc9eb9acdb914f59708ce1d815f3f86c.tar.bz2
linux-stable-56e53806dc9eb9acdb914f59708ce1d815f3f86c.zip
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/sysfs.c')
-rw-r--r--drivers/misc/habanalabs/sysfs.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/misc/habanalabs/sysfs.c b/drivers/misc/habanalabs/sysfs.c
index c900ab15cceb..25eb46d29d88 100644
--- a/drivers/misc/habanalabs/sysfs.c
+++ b/drivers/misc/habanalabs/sysfs.c
@@ -328,10 +328,6 @@ static ssize_t pci_addr_show(struct device *dev, struct device_attribute *attr,
{
struct hl_device *hdev = dev_get_drvdata(dev);
- /* Use dummy, fixed address for simulator */
- if (!hdev->pdev)
- return sprintf(buf, "0000:%02d:00.0\n", hdev->id);
-
return sprintf(buf, "%04x:%02x:%02x.%x\n",
pci_domain_nr(hdev->pdev->bus),
hdev->pdev->bus->number,