summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/powernv/opal-flash.c
diff options
context:
space:
mode:
authorCyril Bur <cyrilbur@gmail.com>2015-04-01 14:05:30 +0800
committerMichael Ellerman <mpe@ellerman.id.au>2015-04-11 20:49:21 +1000
commited59190e41b725e1cfd79541f5fc66c20adb0671 (patch)
tree94af3907d402d230020c0023b4f3ccaac8306585 /arch/powerpc/platforms/powernv/opal-flash.c
parentd1d915783d90b15236e73d261cd8909db7275001 (diff)
downloadblackbird-obmc-linux-ed59190e41b725e1cfd79541f5fc66c20adb0671.tar.gz
blackbird-obmc-linux-ed59190e41b725e1cfd79541f5fc66c20adb0671.zip
powerpc/powernv: Add interfaces for flash device access
This change adds the OPAL interface definitions to allow Linux to read, write and erase from system flash devices. We register platform devices for the flash devices exported by firmware. We clash with the existing opal_flash_init function, which is really for the FSP flash update functionality, so we rename that initcall to opal_flash_update_init(). A future change will add an mtd driver that uses this interface. Changes from Joel Stanley and Jeremy Kerr. Signed-off-by: Cyril Bur <cyrilbur@gmail.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Joel Stanley <joel@jms.id.au> Acked-by: Stewart Smith <stewart@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms/powernv/opal-flash.c')
-rw-r--r--arch/powerpc/platforms/powernv/opal-flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powernv/opal-flash.c b/arch/powerpc/platforms/powernv/opal-flash.c
index 0ff07ff891f0..4ec6219287fc 100644
--- a/arch/powerpc/platforms/powernv/opal-flash.c
+++ b/arch/powerpc/platforms/powernv/opal-flash.c
@@ -546,7 +546,7 @@ static struct attribute_group image_op_attr_group = {
.attrs = image_op_attrs,
};
-void __init opal_flash_init(void)
+void __init opal_flash_update_init(void)
{
int ret;
OpenPOWER on IntegriCloud