Skip to content

Commit

Permalink
pstore: remove __dev* attributes.
Browse files Browse the repository at this point in the history
CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
markings need to be removed.

This change removes the use of __devinit from the pstore filesystem.

Based on patches originally written by Bill Pemberton, but redone by me
in order to handle some of the coding style issues better, by hand.

Cc: Bill Pemberton <[email protected]>
Cc: Anton Vorontsov <[email protected]>
Cc: Colin Cross <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Tony Luck <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
gregkh committed Jan 3, 2013
1 parent fcb35a9 commit f568f6c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
14 changes: 6 additions & 8 deletions fs/pstore/ram.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,8 @@ static void ramoops_free_przs(struct ramoops_context *cxt)
kfree(cxt->przs);
}

static int __devinit ramoops_init_przs(struct device *dev,
struct ramoops_context *cxt,
phys_addr_t *paddr, size_t dump_mem_sz)
static int ramoops_init_przs(struct device *dev, struct ramoops_context *cxt,
phys_addr_t *paddr, size_t dump_mem_sz)
{
int err = -ENOMEM;
int i;
Expand Down Expand Up @@ -336,10 +335,9 @@ static int __devinit ramoops_init_przs(struct device *dev,
return err;
}

static int __devinit ramoops_init_prz(struct device *dev,
struct ramoops_context *cxt,
struct persistent_ram_zone **prz,
phys_addr_t *paddr, size_t sz, u32 sig)
static int ramoops_init_prz(struct device *dev, struct ramoops_context *cxt,
struct persistent_ram_zone **prz,
phys_addr_t *paddr, size_t sz, u32 sig)
{
if (!sz)
return 0;
Expand Down Expand Up @@ -367,7 +365,7 @@ static int __devinit ramoops_init_prz(struct device *dev,
return 0;
}

static int __devinit ramoops_probe(struct platform_device *pdev)
static int ramoops_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
struct ramoops_platform_data *pdata = pdev->dev.platform_data;
Expand Down
9 changes: 4 additions & 5 deletions fs/pstore/ram_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@ static int persistent_ram_buffer_map(phys_addr_t start, phys_addr_t size,
return 0;
}

static int __devinit persistent_ram_post_init(struct persistent_ram_zone *prz,
u32 sig, int ecc_size)
static int persistent_ram_post_init(struct persistent_ram_zone *prz, u32 sig,
int ecc_size)
{
int ret;

Expand Down Expand Up @@ -443,9 +443,8 @@ void persistent_ram_free(struct persistent_ram_zone *prz)
kfree(prz);
}

struct persistent_ram_zone * __devinit persistent_ram_new(phys_addr_t start,
size_t size, u32 sig,
int ecc_size)
struct persistent_ram_zone *persistent_ram_new(phys_addr_t start, size_t size,
u32 sig, int ecc_size)
{
struct persistent_ram_zone *prz;
int ret = -ENOMEM;
Expand Down
5 changes: 2 additions & 3 deletions include/linux/pstore_ram.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ struct persistent_ram_zone {
size_t old_log_size;
};

struct persistent_ram_zone * __devinit persistent_ram_new(phys_addr_t start,
size_t size, u32 sig,
int ecc_size);
struct persistent_ram_zone *persistent_ram_new(phys_addr_t start, size_t size,
u32 sig, int ecc_size);
void persistent_ram_free(struct persistent_ram_zone *prz);
void persistent_ram_zap(struct persistent_ram_zone *prz);

Expand Down

0 comments on commit f568f6c

Please sign in to comment.