Skip to content

Commit

Permalink
ata/pata_arasan_cf: Move arasan_cf_pm_ops out of #ifdef, #endif macros
Browse files Browse the repository at this point in the history
#ifdef, #endif is not required in definition/usage of arasan_cf_pm_ops. So, move
this definition and its usage outside of them.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Viresh Kumar authored and Jeff Garzik committed May 3, 2012
1 parent a78f57a commit fb9751d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/ata/pata_arasan_cf.c
Original file line number Diff line number Diff line change
Expand Up @@ -943,19 +943,17 @@ static int arasan_cf_resume(struct device *dev)

return 0;
}
#endif

static SIMPLE_DEV_PM_OPS(arasan_cf_pm_ops, arasan_cf_suspend, arasan_cf_resume);
#endif

static struct platform_driver arasan_cf_driver = {
.probe = arasan_cf_probe,
.remove = __devexit_p(arasan_cf_remove),
.driver = {
.name = DRIVER_NAME,
.owner = THIS_MODULE,
#ifdef CONFIG_PM
.pm = &arasan_cf_pm_ops,
#endif
},
};

Expand Down

0 comments on commit fb9751d

Please sign in to comment.