Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130875
b: refs/heads/master
c: e78f5fa
h: refs/heads/master
i:
  130873: 8c498e7
  130871: c167359
v: v3
  • Loading branch information
Ron Mercer authored and David S. Miller committed Feb 2, 2009
1 parent df2ca98 commit 22af670
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 26351479ed43288be92935826c215fbe01e2abb2
refs/heads/master: e78f5fa7cc1a211eb9909ef90b0de3311086ba55
9 changes: 8 additions & 1 deletion trunk/drivers/net/qlge/qlge_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,12 +670,19 @@ static int ql_get_flash_params(struct ql_adapter *qdev)
int i;
int status;
__le32 *p = (__le32 *)&qdev->flash;
u32 offset = 0;

/* Second function's parameters follow the first
* function's.
*/
if (qdev->func)
offset = sizeof(qdev->flash) / sizeof(u32);

if (ql_sem_spinlock(qdev, SEM_FLASH_MASK))
return -ETIMEDOUT;

for (i = 0; i < sizeof(qdev->flash) / sizeof(u32); i++, p++) {
status = ql_read_flash_word(qdev, i, p);
status = ql_read_flash_word(qdev, i+offset, p);
if (status) {
QPRINTK(qdev, IFUP, ERR, "Error reading flash.\n");
goto exit;
Expand Down

0 comments on commit 22af670

Please sign in to comment.