Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155115
b: refs/heads/master
c: 5e1596f
h: refs/heads/master
i:
  155113: aa9d6d2
  155111: bb47d2d
v: v3
  • Loading branch information
Dave Jones committed Jul 8, 2009
1 parent 64feed8 commit 4763a3b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 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: 2e3167308048ca6c810733384d8289082f7e4ec1
refs/heads/master: 5e1596f75395e7a402e1059c518e633d2732dcf8
7 changes: 4 additions & 3 deletions trunk/drivers/cpufreq/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -776,9 +776,6 @@ static int cpufreq_add_dev(struct sys_device *sys_dev)
struct sys_device *cpu_sys_dev;
unsigned long flags;
unsigned int j;
#ifdef CONFIG_SMP
struct cpufreq_policy *managed_policy;
#endif

if (cpu_is_offline(cpu))
return 0;
Expand Down Expand Up @@ -854,6 +851,8 @@ static int cpufreq_add_dev(struct sys_device *sys_dev)
#endif

for_each_cpu(j, policy->cpus) {
struct cpufreq_policy *managed_policy;

if (cpu == j)
continue;

Expand Down Expand Up @@ -932,6 +931,8 @@ static int cpufreq_add_dev(struct sys_device *sys_dev)

/* symlink affected CPUs */
for_each_cpu(j, policy->cpus) {
struct cpufreq_policy *managed_policy;

if (j == cpu)
continue;
if (!cpu_online(j))
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/net/fealnx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1216,13 +1216,13 @@ static void fealnx_tx_timeout(struct net_device *dev)
{
printk(KERN_DEBUG " Rx ring %p: ", np->rx_ring);
for (i = 0; i < RX_RING_SIZE; i++)
printk(KERN_CONT " %8.8x",
printk(PR_CONT " %8.8x",
(unsigned int) np->rx_ring[i].status);
printk(KERN_CONT "\n");
printk(KERN_DEBUG " Tx ring %p: ", np->tx_ring);
for (i = 0; i < TX_RING_SIZE; i++)
printk(KERN_CONT " %4.4x", np->tx_ring[i].status);
printk(KERN_CONT "\n");
printk(PR_CONT " %4.4x", np->tx_ring[i].status);
printk(PR_CONT "\n");
}

spin_lock_irqsave(&np->lock, flags);
Expand Down
5 changes: 2 additions & 3 deletions trunk/drivers/video/atmel_lcdfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,6 @@ static inline void atmel_lcdfb_free_video_memory(struct atmel_lcdfb_info *sinfo)
/**
* atmel_lcdfb_alloc_video_memory - Allocate framebuffer memory
* @sinfo: the frame buffer to allocate memory for
*
* This function is called only from the atmel_lcdfb_probe()
* so no locking by fb_info->mm_lock around smem_len setting is needed.
*/
static int atmel_lcdfb_alloc_video_memory(struct atmel_lcdfb_info *sinfo)
{
Expand All @@ -273,7 +270,9 @@ static int atmel_lcdfb_alloc_video_memory(struct atmel_lcdfb_info *sinfo)

smem_len = (var->xres_virtual * var->yres_virtual
* ((var->bits_per_pixel + 7) / 8));
mutex_lock(&info->mm_lock);
info->fix.smem_len = max(smem_len, sinfo->smem_len);
mutex_unlock(&info->mm_lock);

info->screen_base = dma_alloc_writecombine(info->device, info->fix.smem_len,
(dma_addr_t *)&info->fix.smem_start, GFP_KERNEL);
Expand Down
6 changes: 6 additions & 0 deletions trunk/drivers/video/fsl-diu-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1223,6 +1223,12 @@ static int __devinit install_fb(struct fb_info *info)
return -EINVAL;
}

if (fsl_diu_set_par(info)) {
printk(KERN_ERR "fb_set_par failed");
fb_dealloc_cmap(&info->cmap);
return -EINVAL;
}

if (register_framebuffer(info) < 0) {
printk(KERN_ERR "register_framebuffer failed");
unmap_video_memory(info);
Expand Down

0 comments on commit 4763a3b

Please sign in to comment.