diff options
author | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2016-02-15 12:11:54 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-20 17:09:14 -0500 |
commit | c1a327c4d3d7d2ce2c75e77fcfd34a729ab45f6f (patch) | |
tree | 6b42109fc986d24fb295de1060d8624221d610d1 /drivers/hwtracing/intel_th | |
parent | 993c7f11192ffcfb435cee51c3414509a557e916 (diff) |
intel_th: gth: Remove commented-out code
There's a commented-out function in the GTH driver that's a leftover
from previous versions of the driver, where we tried to inherit the
pre-existing configuration, which didn't prove to be a sound idea.
This patch removes the function. No functional changes.
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hwtracing/intel_th')
-rw-r--r-- | drivers/hwtracing/intel_th/gth.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/hwtracing/intel_th/gth.c b/drivers/hwtracing/intel_th/gth.c index 2dc5378ccd3a..e4c9811c1f40 100644 --- a/drivers/hwtracing/intel_th/gth.c +++ b/drivers/hwtracing/intel_th/gth.c | |||
@@ -146,24 +146,6 @@ gth_master_set(struct gth_device *gth, unsigned int master, int port) | |||
146 | iowrite32(val, gth->base + reg); | 146 | iowrite32(val, gth->base + reg); |
147 | } | 147 | } |
148 | 148 | ||
149 | /*static int gth_master_get(struct gth_device *gth, unsigned int master) | ||
150 | { | ||
151 | unsigned int reg = REG_GTH_SWDEST0 + ((master >> 1) & ~3u); | ||
152 | unsigned int shift = (master & 0x7) * 4; | ||
153 | u32 val; | ||
154 | |||
155 | if (master >= 256) { | ||
156 | reg = REG_GTH_GSWTDEST; | ||
157 | shift = 0; | ||
158 | } | ||
159 | |||
160 | val = ioread32(gth->base + reg); | ||
161 | val &= (0xf << shift); | ||
162 | val >>= shift; | ||
163 | |||
164 | return val ? val & 0x7 : -1; | ||
165 | }*/ | ||
166 | |||
167 | static ssize_t master_attr_show(struct device *dev, | 149 | static ssize_t master_attr_show(struct device *dev, |
168 | struct device_attribute *attr, | 150 | struct device_attribute *attr, |
169 | char *buf) | 151 | char *buf) |