diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-02 19:52:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-02 19:52:17 -0400 |
commit | f7e801172c53c4dc48b1f888a72eae069be6333a (patch) | |
tree | 61d5243a48fe3640dbace0222054fc88dd0c6612 /drivers/char | |
parent | 092f4c56c1927e4b61a41ee8055005f1cb437009 (diff) | |
parent | 6b1c70b1ff6f800f081a6bbef662789135f7b398 (diff) |
Merge branch 'misc-3.2' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux
* 'misc-3.2' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux:
MAINTAINERS: Update entry for IA64
[IA64] gpio: GENERIC_GPIO default must be n
[IA64[ add CONFIG_NET_VENDOR_INTEL=y to default config files where needed
[IA64] agp/hp-agp: Allow binding user memory to the AGP GART
[IA64] sn2: add missing put_cpu()
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/agp/hp-agp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/char/agp/hp-agp.c b/drivers/char/agp/hp-agp.c index 056b289a1e89..3695773ce7c3 100644 --- a/drivers/char/agp/hp-agp.c +++ b/drivers/char/agp/hp-agp.c | |||
@@ -336,7 +336,8 @@ hp_zx1_insert_memory (struct agp_memory *mem, off_t pg_start, int type) | |||
336 | off_t j, io_pg_start; | 336 | off_t j, io_pg_start; |
337 | int io_pg_count; | 337 | int io_pg_count; |
338 | 338 | ||
339 | if (type != 0 || mem->type != 0) { | 339 | if (type != mem->type || |
340 | agp_bridge->driver->agp_type_to_mask_type(agp_bridge, type)) { | ||
340 | return -EINVAL; | 341 | return -EINVAL; |
341 | } | 342 | } |
342 | 343 | ||
@@ -380,7 +381,8 @@ hp_zx1_remove_memory (struct agp_memory *mem, off_t pg_start, int type) | |||
380 | struct _hp_private *hp = &hp_private; | 381 | struct _hp_private *hp = &hp_private; |
381 | int i, io_pg_start, io_pg_count; | 382 | int i, io_pg_start, io_pg_count; |
382 | 383 | ||
383 | if (type != 0 || mem->type != 0) { | 384 | if (type != mem->type || |
385 | agp_bridge->driver->agp_type_to_mask_type(agp_bridge, type)) { | ||
384 | return -EINVAL; | 386 | return -EINVAL; |
385 | } | 387 | } |
386 | 388 | ||