summaryrefslogtreecommitdiffstats
path: root/drivers/staging/sm750fb/sm750.h
diff options
context:
space:
mode:
authorMike Rapoport2015-10-23 16:55:07 +0200
committerGreg Kroah-Hartman2015-10-25 03:04:13 +0100
commitb108da75862b231ada8f26002138161214ca62d1 (patch)
tree80c807c9ec0cfcc457d9c5deb009db7ba50b5576 /drivers/staging/sm750fb/sm750.h
parentstaging: sm750fb: remove unused pllcalparam typedef (diff)
downloadkernel-qcow2-linux-b108da75862b231ada8f26002138161214ca62d1.tar.gz
kernel-qcow2-linux-b108da75862b231ada8f26002138161214ca62d1.tar.xz
kernel-qcow2-linux-b108da75862b231ada8f26002138161214ca62d1.zip
staging: sm750fb: remove defintion of offsetof
There is no need to redefine offsetof Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sm750fb/sm750.h')
-rw-r--r--drivers/staging/sm750fb/sm750.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/sm750fb/sm750.h b/drivers/staging/sm750fb/sm750.h
index 52fe945101c8..e74a3e15d251 100644
--- a/drivers/staging/sm750fb/sm750.h
+++ b/drivers/staging/sm750fb/sm750.h
@@ -155,10 +155,6 @@ struct lynxfb_par {
struct lynx_share *share;
};
-#ifndef offsetof
-#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
-#endif
-
static inline unsigned long ps_to_hz(unsigned int psvalue)
{
unsigned long long numerator = 1000*1000*1000*1000ULL;