summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/irq.c
diff options
context:
space:
mode:
authorMattia Dongili <malattia@linux.it>2007-08-12 16:20:28 +0900
committerLen Brown <len.brown@intel.com>2007-08-24 00:58:57 -0400
commitfd1caaed466de2ee100e250b6c755376eda7ba3b (patch)
tree6b3af9a0ff8390b4a27a40008c4e542395587a47 /arch/mips/kernel/irq.c
parent015a916fbbf105bb15f4bbfd80c3b9b2f2e0d7db (diff)
downloadkernel-crypto-fd1caaed466de2ee100e250b6c755376eda7ba3b.tar.gz
kernel-crypto-fd1caaed466de2ee100e250b6c755376eda7ba3b.tar.xz
kernel-crypto-fd1caaed466de2ee100e250b6c755376eda7ba3b.zip
sony-laptop: old Vaio models contain 2 IO port entries
Make the driver aware of this case and manage the existence of a second separate IO port. Signed-off-by: Mattia Dongili <malattia@linux.it> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'arch/mips/kernel/irq.c')
0 files changed, 0 insertions, 0 deletions
an> Kill(char *dev, struct supertype *st, int force, int quiet, int noexcl) { /* * Nothing fancy about Kill. It just zeroes out a superblock * Definitely not safe. * Returns: * 0 - a zero superblock was successfully written out * 1 - failed to write the zero superblock * 2 - failed to open the device or find a superblock. */ int fd, rv = 0; if (force) noexcl = 1; fd = open(dev, O_RDWR|(noexcl ? 0 : O_EXCL)); if (fd < 0) { if (!quiet) fprintf(stderr, Name ": Couldn't open %s for write - not zeroing\n", dev); return 2; } if (st == NULL) st = guess_super(fd); if (st == NULL) { if (!quiet) fprintf(stderr, Name ": Unrecognised md component device - %s\n", dev); close(fd); return 2; } rv = st->ss->load_super(st, fd, dev); if (force && rv >= 2) rv = 0; /* ignore bad data in superblock */ if (rv== 0 || (force && rv >= 2)) { st->ss->free_super(st); st->ss->init_super(st, NULL, 0, "", NULL, NULL); if (st->ss->store_super(st, fd)) { if (!quiet) fprintf(stderr, Name ": Could not zero superblock on %s\n", dev); rv = 1; } else if (rv) { if (!quiet) fprintf(stderr, Name ": superblock zeroed anyway\n"); rv = 0; } } close(fd); return rv; }