diff options
Diffstat (limited to 'drivers/atm/firestream.c')
-rw-r--r-- | drivers/atm/firestream.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/atm/firestream.c b/drivers/atm/firestream.c index 8717809787fb..ef7a658312a6 100644 --- a/drivers/atm/firestream.c +++ b/drivers/atm/firestream.c | |||
@@ -444,8 +444,8 @@ static inline void fs_kfree_skb (struct sk_buff * skb) | |||
444 | #define ROUND_NEAREST 3 | 444 | #define ROUND_NEAREST 3 |
445 | /********** make rate (not quite as much fun as Horizon) **********/ | 445 | /********** make rate (not quite as much fun as Horizon) **********/ |
446 | 446 | ||
447 | static unsigned int make_rate (unsigned int rate, int r, | 447 | static int make_rate(unsigned int rate, int r, |
448 | u16 * bits, unsigned int * actual) | 448 | u16 *bits, unsigned int *actual) |
449 | { | 449 | { |
450 | unsigned char exp = -1; /* hush gcc */ | 450 | unsigned char exp = -1; /* hush gcc */ |
451 | unsigned int man = -1; /* hush gcc */ | 451 | unsigned int man = -1; /* hush gcc */ |
@@ -1031,7 +1031,7 @@ static int fs_open(struct atm_vcc *atm_vcc) | |||
1031 | /* We now use the "submit_command" function to submit commands to | 1031 | /* We now use the "submit_command" function to submit commands to |
1032 | the firestream. There is a define up near the definition of | 1032 | the firestream. There is a define up near the definition of |
1033 | that routine that switches this routine between immediate write | 1033 | that routine that switches this routine between immediate write |
1034 | to the immediate comamnd registers and queuing the commands in | 1034 | to the immediate command registers and queuing the commands in |
1035 | the HPTXQ for execution. This last technique might be more | 1035 | the HPTXQ for execution. This last technique might be more |
1036 | efficient if we know we're going to submit a whole lot of | 1036 | efficient if we know we're going to submit a whole lot of |
1037 | commands in one go, but this driver is not setup to be able to | 1037 | commands in one go, but this driver is not setup to be able to |
@@ -1782,7 +1782,7 @@ static int __devinit fs_init (struct fs_dev *dev) | |||
1782 | write_fs (dev, RAS0, RAS0_DCD_XHLT | 1782 | write_fs (dev, RAS0, RAS0_DCD_XHLT |
1783 | | (((1 << FS155_VPI_BITS) - 1) * RAS0_VPSEL) | 1783 | | (((1 << FS155_VPI_BITS) - 1) * RAS0_VPSEL) |
1784 | | (((1 << FS155_VCI_BITS) - 1) * RAS0_VCSEL)); | 1784 | | (((1 << FS155_VCI_BITS) - 1) * RAS0_VCSEL)); |
1785 | /* We can chose the split arbitarily. We might be able to | 1785 | /* We can chose the split arbitrarily. We might be able to |
1786 | support more. Whatever. This should do for now. */ | 1786 | support more. Whatever. This should do for now. */ |
1787 | dev->atm_dev->ci_range.vpi_bits = FS155_VPI_BITS; | 1787 | dev->atm_dev->ci_range.vpi_bits = FS155_VPI_BITS; |
1788 | dev->atm_dev->ci_range.vci_bits = FS155_VCI_BITS; | 1788 | dev->atm_dev->ci_range.vci_bits = FS155_VCI_BITS; |
@@ -1911,7 +1911,7 @@ static int __devinit firestream_init_one (struct pci_dev *pci_dev, | |||
1911 | fs_dev, sizeof (struct fs_dev)); | 1911 | fs_dev, sizeof (struct fs_dev)); |
1912 | if (!fs_dev) | 1912 | if (!fs_dev) |
1913 | goto err_out; | 1913 | goto err_out; |
1914 | atm_dev = atm_dev_register("fs", &ops, -1, NULL); | 1914 | atm_dev = atm_dev_register("fs", &pci_dev->dev, &ops, -1, NULL); |
1915 | if (!atm_dev) | 1915 | if (!atm_dev) |
1916 | goto err_out_free_fs_dev; | 1916 | goto err_out_free_fs_dev; |
1917 | 1917 | ||