The latency timer was introduced with the FT232BM and FT245BM chips.  Do
not bother attempting to read or write it for older chip versions.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Johan Hovold <johan@kernel.org>
        int rv;
        int l = priv->latency;
 
+       if (priv->chip_type == SIO || priv->chip_type == FT8U232AM)
+               return -EINVAL;
+
        if (priv->flags & ASYNC_LOW_LATENCY)
                l = 1;
 
        unsigned char *buf;
        int rv;
 
+       if (priv->chip_type == SIO || priv->chip_type == FT8U232AM)
+               return -EINVAL;
+
        buf = kmalloc(1, GFP_KERNEL);
        if (!buf)
                return -ENOMEM;