diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-01-24 15:49:18 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-01-24 15:49:18 -0500 |
commit | a32f7d1ad3744914273c6907204c2ab3b5d496a0 (patch) | |
tree | 1c5ae321ee85665707177547c07810ff7e09e1ab /drivers/mtd/devices/mtd_dataflash.c | |
parent | 6b9e50c463efc5c361496ae6a895cc966ff8025b (diff) | |
parent | 68d6f84ba0c47e658beff3a4bf0c43acee4b4690 (diff) |
Merge branch 'v4l_for_linus' into staging/for_v3.9
* v4l_for_linus: (464 commits)
[media] uvcvideo: Set error_idx properly for S_EXT_CTRLS failures
[media] uvcvideo: Cleanup leftovers of partial revert
[media] uvcvideo: Return -EACCES when trying to set a read-only control
Linux 3.8-rc3
mm: reinstante dropped pmd_trans_splitting() check
cred: Remove tgcred pointer from struct cred
drm/ttm: fix fence locking in ttm_buffer_object_transfer
ARM: clps711x: Fix bad merge of clockevents setup
ARM: highbank: save and restore L2 cache and GIC on suspend
ARM: highbank: add a power request clear
ARM: highbank: fix secondary boot and hotplug
ARM: highbank: fix typos with hignbank in power request functions
ARM: dts: fix highbank cpu mpidr values
ARM: dts: add device_type prop to cpu nodes on Calxeda platforms
drm/prime: drop reference on imported dma-buf come from gem
xen/netfront: improve truesize tracking
ARM: mx5: Fix MX53 flexcan2 clock
ARM: OMAP2+: am33xx-hwmod: Fix wrongly terminated am33xx_usbss_mpu_irqs array
sctp: fix Kconfig bug in default cookie hmac selection
EDAC: Cleanup device deregistering path
...
Conflicts:
drivers/media/pci/dm1105/dm1105.c
drivers/media/platform/soc_camera/mx2_camera.c
Diffstat (limited to 'drivers/mtd/devices/mtd_dataflash.c')
-rw-r--r-- | drivers/mtd/devices/mtd_dataflash.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c index ea7ea7b595d8..945c9f762349 100644 --- a/drivers/mtd/devices/mtd_dataflash.c +++ b/drivers/mtd/devices/mtd_dataflash.c | |||
@@ -618,9 +618,8 @@ static char *otp_setup(struct mtd_info *device, char revision) | |||
618 | /* | 618 | /* |
619 | * Register DataFlash device with MTD subsystem. | 619 | * Register DataFlash device with MTD subsystem. |
620 | */ | 620 | */ |
621 | static int | 621 | static int add_dataflash_otp(struct spi_device *spi, char *name, int nr_pages, |
622 | add_dataflash_otp(struct spi_device *spi, char *name, | 622 | int pagesize, int pageoffset, char revision) |
623 | int nr_pages, int pagesize, int pageoffset, char revision) | ||
624 | { | 623 | { |
625 | struct dataflash *priv; | 624 | struct dataflash *priv; |
626 | struct mtd_info *device; | 625 | struct mtd_info *device; |
@@ -679,9 +678,8 @@ add_dataflash_otp(struct spi_device *spi, char *name, | |||
679 | return err; | 678 | return err; |
680 | } | 679 | } |
681 | 680 | ||
682 | static inline int | 681 | static inline int add_dataflash(struct spi_device *spi, char *name, |
683 | add_dataflash(struct spi_device *spi, char *name, | 682 | int nr_pages, int pagesize, int pageoffset) |
684 | int nr_pages, int pagesize, int pageoffset) | ||
685 | { | 683 | { |
686 | return add_dataflash_otp(spi, name, nr_pages, pagesize, | 684 | return add_dataflash_otp(spi, name, nr_pages, pagesize, |
687 | pageoffset, 0); | 685 | pageoffset, 0); |