diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-01-07 22:53:51 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-01-07 22:53:51 -0200 |
commit | 3e2f25b6cac4a20c4045b0dc0b35c9cf58b83bd4 (patch) | |
tree | 78517094820d4ff530077fc68b9d00a393ec7fb5 /linux/drivers/media/video/v4l2-common.c | |
parent | 7f3ecdc10642405261f00d75ca8911d282f87d08 (diff) | |
parent | dc174a49c7635e041e2805c7ad2c3ba04b1c4630 (diff) | |
download | mediapointer-dvb-s2-3e2f25b6cac4a20c4045b0dc0b35c9cf58b83bd4.tar.gz mediapointer-dvb-s2-3e2f25b6cac4a20c4045b0dc0b35c9cf58b83bd4.tar.bz2 |
merge: http://linuxtv.org/hg/~mcisely/pvrusb2
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/v4l2-common.c')
-rw-r--r-- | linux/drivers/media/video/v4l2-common.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/linux/drivers/media/video/v4l2-common.c b/linux/drivers/media/video/v4l2-common.c index 18ac4b8d0..b940317af 100644 --- a/linux/drivers/media/video/v4l2-common.c +++ b/linux/drivers/media/video/v4l2-common.c @@ -108,8 +108,15 @@ EXPORT_SYMBOL(v4l2_video_std_fps); char *v4l2_norm_to_name(v4l2_std_id id) { char *name; + u32 myid = id; - switch (id) { + /* HACK: ppc32 architecture doesn't have __ucmpdi2 function to handle + 64 bit comparations. So, on that architecture, with some gcc variants, + compilation fails. Currently, the max value is 30bit wide. + */ + BUG_ON(myid != id); + + switch (myid) { case V4L2_STD_PAL: name="PAL"; break; case V4L2_STD_PAL_BG: |