~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to arch/powerpc/lib/devres.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
#include <linux/device.h>       /* devres_*(), devm_ioremap_release() */
11
11
#include <linux/gfp.h>
12
 
#include <linux/io.h>           /* ioremap_flags() */
 
12
#include <linux/io.h>           /* ioremap_prot() */
13
13
#include <linux/module.h>       /* EXPORT_SYMBOL() */
14
14
 
15
15
/**
16
 
 * devm_ioremap_prot - Managed ioremap_flags()
 
16
 * devm_ioremap_prot - Managed ioremap_prot()
17
17
 * @dev: Generic device to remap IO address for
18
18
 * @offset: BUS offset to map
19
19
 * @size: Size of map
31
31
        if (!ptr)
32
32
                return NULL;
33
33
 
34
 
        addr = ioremap_flags(offset, size, flags);
 
34
        addr = ioremap_prot(offset, size, flags);
35
35
        if (addr) {
36
36
                *ptr = addr;
37
37
                devres_add(dev, ptr);