diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-26 20:18:11 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-26 20:18:11 -0500 |
commit | 41630959ed5ce694ec2e8c0f3c69743e011394c8 (patch) | |
tree | 868cfa36577ebfad69f78180656cdca313c7498d | |
parent | 2b8c70b2174402ca3dec13310ce56597233392d7 (diff) | |
parent | c4d1409bbed8cf2a11b48ce3a075e142f686a588 (diff) |
Merge branch 'ibft-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/ibft-2.6
* 'ibft-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/ibft-2.6:
ibft: Update MAINTAINERS file.
drivers/firmware/iscsi_ibft.c: remove NIPQUAD_FMT, use %pI4
-rw-r--r-- | MAINTAINERS | 6 | ||||
-rw-r--r-- | drivers/firmware/iscsi_ibft.c | 8 |
2 files changed, 9 insertions, 5 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index 5f8c20600e20..a0491af7b243 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
@@ -2410,6 +2410,12 @@ L: virtualization@lists.linux-foundation.org | |||
2410 | S: Maintained | 2410 | S: Maintained |
2411 | F: drivers/char/virtio_console.c | 2411 | F: drivers/char/virtio_console.c |
2412 | 2412 | ||
2413 | iSCSI BOOT FIRMWARE TABLE (iBFT) DRIVER | ||
2414 | M: Peter Jones <pjones@redhat.com> | ||
2415 | M: Konrad Rzeszutek Wilk <konrad@kernel.org> | ||
2416 | S: Maintained | ||
2417 | F: drivers/firmware/iscsi_ibft* | ||
2418 | |||
2413 | GSPCA FINEPIX SUBDRIVER | 2419 | GSPCA FINEPIX SUBDRIVER |
2414 | M: Frank Zago <frank@zago.net> | 2420 | M: Frank Zago <frank@zago.net> |
2415 | L: linux-media@vger.kernel.org | 2421 | L: linux-media@vger.kernel.org |
diff --git a/drivers/firmware/iscsi_ibft.c b/drivers/firmware/iscsi_ibft.c index 051d1ebbd287..f82bcdae130b 100644 --- a/drivers/firmware/iscsi_ibft.c +++ b/drivers/firmware/iscsi_ibft.c | |||
@@ -381,7 +381,7 @@ static ssize_t ibft_attr_show_nic(struct ibft_kobject *entry, | |||
381 | void *ibft_loc = entry->header; | 381 | void *ibft_loc = entry->header; |
382 | char *str = buf; | 382 | char *str = buf; |
383 | char *mac; | 383 | char *mac; |
384 | int val; | 384 | __be32 val; |
385 | 385 | ||
386 | if (!nic) | 386 | if (!nic) |
387 | return 0; | 387 | return 0; |
@@ -397,10 +397,8 @@ static ssize_t ibft_attr_show_nic(struct ibft_kobject *entry, | |||
397 | str += sprintf_ipaddr(str, nic->ip_addr); | 397 | str += sprintf_ipaddr(str, nic->ip_addr); |
398 | break; | 398 | break; |
399 | case ibft_eth_subnet_mask: | 399 | case ibft_eth_subnet_mask: |
400 | val = ~((1 << (32-nic->subnet_mask_prefix))-1); | 400 | val = cpu_to_be32(~((1 << (32-nic->subnet_mask_prefix))-1)); |
401 | str += sprintf(str, NIPQUAD_FMT, | 401 | str += sprintf(str, "%pI4", &val); |
402 | (u8)(val >> 24), (u8)(val >> 16), | ||
403 | (u8)(val >> 8), (u8)(val)); | ||
404 | break; | 402 | break; |
405 | case ibft_eth_origin: | 403 | case ibft_eth_origin: |
406 | str += sprintf(str, "%d\n", nic->origin); | 404 | str += sprintf(str, "%d\n", nic->origin); |