Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 201274
b: refs/heads/master
c: 96d6523
h: refs/heads/master
v: v3
  • Loading branch information
Eric W. Biederman authored and Greg Kroah-Hartman committed Jul 26, 2010
1 parent a488d44 commit fd54339
Show file tree
Hide file tree
Showing 53 changed files with 108 additions and 347 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: 592d32cc4156ee512e55c5bc052fdece215f52b2
refs/heads/master: 96d6523adffbab64f099561a021892125e0c672c
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-clps711x/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*
*/

#include <mach/hardware.h>
#include <asm/hardware/clps7111.h>

.macro addruart, rx, tmp
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-footbridge/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ EXPORT_SYMBOL(__bus_to_virt);

unsigned long __pfn_to_bus(unsigned long pfn)
{
return __pfn_to_phys(pfn) + (fb_bus_sdram_offset() - PHYS_OFFSET);
return __pfn_to_phys(pfn) + (fb_bus_sdram_offset() - PHYS_OFFSET));
}
EXPORT_SYMBOL(__pfn_to_bus);

Expand Down
6 changes: 2 additions & 4 deletions trunk/arch/arm/mach-h720x/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@
*
*/

#include <mach/hardware.h>

.equ io_virt, IO_VIRT
.equ io_phys, IO_PHYS
.equ io_virt, IO_BASE
.equ io_phys, IO_START

.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-kirkwood/tsx1x-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct spi_board_info __initdata qnap_tsx1x_spi_slave_info[] = {
},
};

void __init qnap_tsx1x_register_flash(void)
void qnap_tsx1x_register_flash(void)
{
spi_register_board_info(qnap_tsx1x_spi_slave_info,
ARRAY_SIZE(qnap_tsx1x_spi_slave_info));
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-kirkwood/tsx1x-common.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __ARCH_KIRKWOOD_TSX1X_COMMON_H
#define __ARCH_KIRKWOOD_TSX1X_COMMON_H

extern void __init qnap_tsx1x_register_flash(void);
extern void qnap_tsx1x_register_flash(void);
extern void qnap_tsx1x_power_off(void);

#endif
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-ns9xxx/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* the Free Software Foundation.
*/
#include <mach/hardware.h>
#include <asm/memory.h>

#include <mach/regs-board-a9m9750dev.h>

Expand Down
30 changes: 15 additions & 15 deletions trunk/arch/arm/mach-ns9xxx/include/mach/uncompress.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,49 +20,50 @@ static void putc_dummy(char c, void __iomem *base)
/* nothing */
}

static int timeout;

static void putc_ns9360(char c, void __iomem *base)
{
static int t = 0x10000;
do {
if (timeout)
--timeout;
if (t)
--t;

if (__raw_readl(base + 8) & (1 << 3)) {
__raw_writeb(c, base + 16);
timeout = 0x10000;
t = 0x10000;
break;
}
} while (timeout);
} while (t);
}

static void putc_a9m9750dev(char c, void __iomem *base)
{
static int t = 0x10000;
do {
if (timeout)
--timeout;
if (t)
--t;

if (__raw_readb(base + 5) & (1 << 5)) {
__raw_writeb(c, base);
timeout = 0x10000;
t = 0x10000;
break;
}
} while (timeout);
} while (t);

}

static void putc_ns921x(char c, void __iomem *base)
{
static int t = 0x10000;
do {
if (timeout)
--timeout;
if (t)
--t;

if (!(__raw_readl(base) & (1 << 11))) {
__raw_writeb(c, base + 0x0028);
timeout = 0x10000;
t = 0x10000;
break;
}
} while (timeout);
} while (t);
}

#define MSCS __REG(0xA0900184)
Expand All @@ -88,7 +89,6 @@ static void putc_ns921x(char c, void __iomem *base)

static void autodetect(void (**putc)(char, void __iomem *), void __iomem **base)
{
timeout = 0x10000;
if (((__raw_readl(MSCS) >> 16) & 0xfe) == 0x00) {
/* ns9360 or ns9750 */
if (NS9360_UART_ENABLED(NS9360_UARTA)) {
Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/arm/mach-pxa/colibri-pxa300.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include <mach/colibri.h>
#include <mach/ohci.h>
#include <mach/pxafb.h>
#include <mach/audio.h>

#include "generic.h"
#include "devices.h"
Expand Down Expand Up @@ -146,7 +145,7 @@ static void __init colibri_pxa300_init_lcd(void)
static inline void colibri_pxa300_init_lcd(void) {}
#endif /* CONFIG_FB_PXA || CONFIG_FB_PXA_MODULE */

#if defined(CONFIG_SND_AC97_CODEC) || defined(CONFIG_SND_AC97_CODEC_MODULE)
#if defined(SND_AC97_CODEC) || defined(SND_AC97_CODEC_MODULE)
static mfp_cfg_t colibri_pxa310_ac97_pin_config[] __initdata = {
GPIO24_AC97_SYSCLK,
GPIO23_AC97_nACRESET,
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-pxa/corgi.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ static struct platform_device corgiled_device = {
static struct pxamci_platform_data corgi_mci_platform_data = {
.detect_delay_ms = 250,
.ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34,
.gpio_card_detect = CORGI_GPIO_nSD_DETECT,
.gpio_card_detect = -1,
.gpio_card_ro = CORGI_GPIO_nSD_WP,
.gpio_power = CORGI_GPIO_SD_PWR,
};
Expand Down
8 changes: 6 additions & 2 deletions trunk/arch/arm/mach-pxa/cpufreq-pxa2xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,13 @@ static void init_sdram_rows(void)

static u32 mdrefr_dri(unsigned int freq)
{
u32 interval = freq * SDRAM_TREF / sdram_rows;
u32 dri = 0;

return (interval - (cpu_is_pxa27x() ? 31 : 0)) / 32;
if (cpu_is_pxa25x())
dri = ((freq * SDRAM_TREF) / (sdram_rows * 32));
if (cpu_is_pxa27x())
dri = ((freq * SDRAM_TREF) / (sdram_rows - 31)) / 32;
return dri;
}

/* find a valid frequency point */
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/arm/mach-pxa/pxa27x.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ void pxa27x_clear_otgph(void)
EXPORT_SYMBOL(pxa27x_clear_otgph);

static unsigned long ac97_reset_config[] = {
GPIO113_GPIO,
GPIO113_AC97_nRESET,
GPIO95_GPIO,
GPIO95_AC97_nRESET,
GPIO95_GPIO,
GPIO113_AC97_nRESET,
GPIO113_GPIO,
};

void pxa27x_assert_ac97reset(int reset_gpio, int on)
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/arm/mach-shark/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
strb \rd, [\rx]
.endm

.macro waituart,rd,rx
.endm

.macro busyuart,rd,rx
mov \rd, #0
1001: add \rd, \rd, #1
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-w90x900/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static struct clk_lookup nuc900_clkregs[] = {
DEF_CLKLOOK(&clk_kpi, "nuc900-kpi", NULL),
DEF_CLKLOOK(&clk_wdt, "nuc900-wdt", NULL),
DEF_CLKLOOK(&clk_gdma, "nuc900-gdma", NULL),
DEF_CLKLOOK(&clk_adc, "nuc900-ts", NULL),
DEF_CLKLOOK(&clk_adc, "nuc900-adc", NULL),
DEF_CLKLOOK(&clk_usi, "nuc900-spi", NULL),
DEF_CLKLOOK(&clk_ext, NULL, "ext"),
DEF_CLKLOOK(&clk_timer0, NULL, "timer0"),
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/plat-spear/include/plat/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
.macro addruart, rx
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
moveq \rx, #SPEAR_DBG_UART_BASE @ Physical base
movne \rx, #VA_SPEAR_DBG_UART_BASE @ Virtual base
moveq \rx, =SPEAR_DBG_UART_BASE @ Physical base
movne \rx, =VA_SPEAR_DBG_UART_BASE @ Virtual base
.endm

.macro senduart, rd, rx
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/avr32/include/asm/ioctls.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@
#define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
#define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */

#define TIOCGRS485 0x542E
#define TIOCSRS485 0x542F

#define FIONCLEX 0x5450
#define FIOCLEX 0x5451
#define FIOASYNC 0x5452
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/avr32/mach-at32ap/include/mach/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#define __ASM_ARCH_BOARD_H

#include <linux/types.h>
#include <linux/serial.h>

#define GPIO_PIN_NONE (-1)

Expand Down Expand Up @@ -36,7 +35,6 @@ struct atmel_uart_data {
short use_dma_tx; /* use transmit DMA? */
short use_dma_rx; /* use receive DMA? */
void __iomem *regs; /* virtual base address, if any */
struct serial_rs485 rs485; /* rs485 settings */
};
void at32_map_usart(unsigned int hw_id, unsigned int line, int flags);
struct platform_device *at32_add_device_usart(unsigned int id);
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/x86/kvm/paging_tmpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,6 @@ static u64 *FNAME(fetch)(struct kvm_vcpu *vcpu, gva_t addr,
/* advance table_gfn when emulating 1gb pages with 4k */
if (delta == 0)
table_gfn += PT_INDEX(addr, level);
access &= gw->pte_access;
} else {
direct = 0;
table_gfn = gw->table_gfn[level - 2];
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -1562,7 +1562,7 @@ static int msr_io(struct kvm_vcpu *vcpu, struct kvm_msrs __user *user_msrs,

r = -ENOMEM;
size = sizeof(struct kvm_msr_entry) * msrs.nmsrs;
entries = kmalloc(size, GFP_KERNEL);
entries = vmalloc(size);
if (!entries)
goto out;

Expand All @@ -1581,7 +1581,7 @@ static int msr_io(struct kvm_vcpu *vcpu, struct kvm_msrs __user *user_msrs,
r = n;

out_free:
kfree(entries);
vfree(entries);
out:
return r;
}
Expand Down
13 changes: 5 additions & 8 deletions trunk/drivers/char/agp/intel-gtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1216,20 +1216,17 @@ static int intel_i915_get_gtt_size(void)

/* G33's GTT size defined in gmch_ctrl */
pci_read_config_word(agp_bridge->dev, I830_GMCH_CTRL, &gmch_ctrl);
switch (gmch_ctrl & I830_GMCH_GMS_MASK) {
case I830_GMCH_GMS_STOLEN_512:
size = 512;
break;
case I830_GMCH_GMS_STOLEN_1024:
switch (gmch_ctrl & G33_PGETBL_SIZE_MASK) {
case G33_PGETBL_SIZE_1M:
size = 1024;
break;
case I830_GMCH_GMS_STOLEN_8192:
size = 8*1024;
case G33_PGETBL_SIZE_2M:
size = 2048;
break;
default:
dev_info(&agp_bridge->dev->dev,
"unknown page table size 0x%x, assuming 512KB\n",
(gmch_ctrl & I830_GMCH_GMS_MASK));
(gmch_ctrl & G33_PGETBL_SIZE_MASK));
size = 512;
}
} else {
Expand Down
9 changes: 1 addition & 8 deletions trunk/drivers/char/tpm/tpm_tis.c
Original file line number Diff line number Diff line change
Expand Up @@ -623,14 +623,7 @@ static int tpm_tis_pnp_suspend(struct pnp_dev *dev, pm_message_t msg)

static int tpm_tis_pnp_resume(struct pnp_dev *dev)
{
struct tpm_chip *chip = pnp_get_drvdata(dev);
int ret;

ret = tpm_pm_resume(&dev->dev);
if (!ret)
tpm_continue_selftest(chip);

return ret;
return tpm_pm_resume(&dev->dev);
}

static struct pnp_device_id tpm_pnp_tbl[] __devinitdata = {
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/edac/i7core_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,7 @@ int i7core_get_onedevice(struct pci_dev **prev, int devno,
if (devno == 0)
return -ENODEV;

i7core_printk(KERN_INFO,
i7core_printk(KERN_ERR,
"Device not found: dev %02x.%d PCI ID %04x:%04x\n",
dev_descr->dev, dev_descr->func,
PCI_VENDOR_ID_INTEL, dev_descr->dev_id);
Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/gpu/drm/i915/i915_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -605,9 +605,6 @@ static int i915_fbc_status(struct seq_file *m, void *unused)
case FBC_NOT_TILED:
seq_printf(m, "scanout buffer not tiled");
break;
case FBC_MULTIPLE_PIPES:
seq_printf(m, "multiple pipes are enabled");
break;
default:
seq_printf(m, "unknown reason");
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/gpu/drm/i915/i915_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,7 @@ static void i915_cleanup_compression(struct drm_device *dev)
struct drm_i915_private *dev_priv = dev->dev_private;

drm_mm_put_block(dev_priv->compressed_fb);
if (dev_priv->compressed_llb)
if (!IS_GM45(dev))
drm_mm_put_block(dev_priv->compressed_llb);
}

Expand Down
5 changes: 0 additions & 5 deletions trunk/drivers/gpu/drm/i915/i915_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,16 +215,13 @@ enum no_fbc_reason {
FBC_MODE_TOO_LARGE, /* mode too large for compression */
FBC_BAD_PLANE, /* fbc not supported on plane */
FBC_NOT_TILED, /* buffer not tiled */
FBC_MULTIPLE_PIPES, /* more than one pipe active */
};

enum intel_pch {
PCH_IBX, /* Ibexpeak PCH */
PCH_CPT, /* Cougarpoint PCH */
};

#define QUIRK_PIPEA_FORCE (1<<0)

struct intel_fbdev;

typedef struct drm_i915_private {
Expand Down Expand Up @@ -340,8 +337,6 @@ typedef struct drm_i915_private {
/* PCH chipset type */
enum intel_pch pch_type;

unsigned long quirks;

/* Register state */
bool modeset_on_lid;
u8 saveLBB;
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -3647,7 +3647,6 @@ i915_gem_wait_for_pending_flip(struct drm_device *dev,
return ret;
}


int
i915_gem_do_execbuffer(struct drm_device *dev, void *data,
struct drm_file *file_priv,
Expand Down Expand Up @@ -3795,7 +3794,7 @@ i915_gem_do_execbuffer(struct drm_device *dev, void *data,
unsigned long long total_size = 0;
int num_fences = 0;
for (i = 0; i < args->buffer_count; i++) {
obj_priv = to_intel_bo(object_list[i]);
obj_priv = object_list[i]->driver_private;

total_size += object_list[i]->size;
num_fences +=
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/gpu/drm/i915/i915_reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -2869,7 +2869,6 @@

#define PCH_PP_STATUS 0xc7200
#define PCH_PP_CONTROL 0xc7204
#define PANEL_UNLOCK_REGS (0xabcd << 16)
#define EDP_FORCE_VDD (1 << 3)
#define EDP_BLC_ENABLE (1 << 2)
#define PANEL_POWER_RESET (1 << 1)
Expand Down
Loading

0 comments on commit fd54339

Please sign in to comment.